Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
LooooooooooooooooooooooooooooooooooooooooooooooooL
Laugh with cry
Like in the real life
approved
To make life of half of users 1% easier than life of the other 50% of users, duh! Isn't this obvious?
My point is that
is faster then
cr_assert_str_eq()
outp
to be a localstr
to prevent corrupted output while printing caused by user modificationC18
ntest
as 've told earlier... 'm on the point that the random test should have a random number of cases!my point was that instead of:
you could write:
this is what
cr_assert_str_eq()
is for, it callsstrcmp()
behind the scenes.Also, it seems that
outp
is never used inassert_case()
? In that case, it should be removed.C version is the old
c11
version, you have to upgrade it toC18
also, what is the point of randomizing
ntest
between99
and100
in? Why not
100
tests every time ?Done
outp
outp
instead ofNULL
actual
with???
but inge_case
instead ofassert_case
cr_assert_str_eq()
used to evaluate all the argumets even in case of success. Though the things could change...in the initial code, you should write a comment telling the user to:
outp
;outp
(and this should be done instead of returnNULL
)in
assert_set()
, you should filloutp
with some nonzero byte to make sure users who forget to nul-terminate do not pass the tests, e.g.cr_assert_str_eq()
inassert_set()
?That was the original idea... Not mine))
Dynamic allocation of two-character long string? Is this really necessary?
Modifed Generic Test and added Random Test...
Kept the handicraftsman's solution!
But there were description merge conflicts!
Please, review, and approve...
This needs random test cases befor I'll approve it.
They use loops internally.