Make a fork, add the tests you want. And you're contradicting yourself saying how to pass the random tests. How is that not "giving any meaningful information about how to solve the problem"?
This comment is hidden because it contains spoiler information about the solution
Hi, read this: https://docs.codewars.com/training/troubleshooting/#print-input
Hey guys! How can we see the inputs of the tests, which are not passed? I got 6 random test failed and can't understand what's wrong with the code
I have the same problem?
TY!
The test is:
test.expect(not is_valid_walk(['w']), 'should return False');
The problem is tests using test.expect are hardly redable (I believe those tests should be rewritten).
test.expect
test.expect checks if its first argument is True. If it is not, the test fails and the message (the second argument) is displayed.
True
So actually this test checks that (not is_valid_walk(['w']) is true <≃> is_valid_walk(['w'] is false.
(not is_valid_walk(['w'])
is_valid_walk(['w']
Can anyone please explain why "not is_valid_walk(['w'])" should return False but not True?
Loading collection data...
Make a fork, add the tests you want. And you're contradicting yourself saying how to pass the random tests. How is that not "giving any meaningful information about how to solve the problem"?
This comment is hidden because it contains spoiler information about the solution
Hi, read this: https://docs.codewars.com/training/troubleshooting/#print-input
Hey guys! How can we see the inputs of the tests, which are not passed? I got 6 random test failed and can't understand what's wrong with the code
I have the same problem?
TY!
The test is:
The problem is tests using
test.expect
are hardly redable (I believe those tests should be rewritten).test.expect
checks if its first argument isTrue
. If it is not, the test fails and the message (the second argument) is displayed.So actually this test checks that
(not is_valid_walk(['w'])
is true <≃>is_valid_walk(['w']
is false.Can anyone please explain why "not is_valid_walk(['w'])" should return False but not True?