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.
This is not 8ky friend. More like 7.
Cool kata )))
Hello, my solution seems to work. But test fails with this message: expected [ 6, 7, 8, 9, 10, 11, 12, 13, 14 ] to deeply equal [ 6, 7, 8, 9 ]. What does it mean? (JS) Thanks in advance!
Chai + assert for CoffeeScript
Approved
python new test framework is required. updated in this fork
Tell me what the error is - it is expected that [] will be deeply equal to [2]
Thanks!
Thank you both, I got stuck at the time and now when I came back to check your comments, I didn't even understand my approach.
It's been a month since I asked for help and now that I'm more used to this, I've been able to easily solve it, but I appreciate the help!
you are not allocating enough memory, and as a result you are writing out of bounds and corrupting the tests suite:
*sz_out
is the length of the array, not its size, becausesizeof *output != 1
.it should be fixed
Sample tests in C have a copy/paste error and they crash (see this post).
Unfortunately, SIGSEGV comes from sample tests, because they have a copy/paste error. Full tests seem to not have the error and they work. You can temporarily fix the error by replacing first assertion (lines 50-55) with:
But stll, the SIGSEGV gets triggered only when your solution is incorrect, and it indeed has a mistake. It does not handle the
sz_out
correctly.Loading more items...