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.
fixed
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is not the case. For example, x=2.
The action lambda x:0 results in 0,
and the action lambda x:x%2 results in 0 too
There is a trouble with python random test case -
a test should look as a tuple:
(command, number_to_operate_with, expected_result_of_operation, "explanation");
the command is in range 0..4. But in the test case we see random.randint(0,1000000)
It should be:
random.randint(0,1000000) % 5
or:
random.randint(0,4)
Nobody's going to change the requirements now. Apart from that, such inputs would contradict the idea of the kata.
Fixed no.1
Thank you ))
Added to description.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it means "don't hard code everything" (I guess...)
This comment is hidden because it contains spoiler information about the solution
There are two things.
First, the description is misleading because of a typo:
should read:
not
apart
which may be understood asseparately
, buta part of word
, which meanstogether with word
The other thing is about tests. The tests should include strings with leading / trailing spaces and multiple spaces between words.
You write:
TestError: Expected: '', instead got: ' '
- expected an empty string with no characters, even a single space, and got a string of one character, space char.It's a special case and should be dealed separately.
Loading more items...