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.
Good kata but test design is annoying. Each test case should have its own
it
block, and you could enableallow_raise
to exit test cases early on first failureOP solved it, closing
.
In general it's not possible to run random tests locally since they are not available until you solve the kata. Ideally tests logs should be more explicit and give you the input your code fails on. In this kata, NASM tests seem identical to C's tests (on Codewars, afaik NASM tests are always written in C), so if you solved them in the latter you may be able to do something useful locally.
My NASM solution passes Sample and Basic tests, but fails with "Signal code: 11" on Random_Tests_1000_strings_of_65635_char
If I understand correctly these tests run various 65635-long strings 1000 times? How could I possibly test something like this by myself?
Hi,
just actually put the fixed tests in the sample tests. No user will try to debug their code with random parameters in the sample tests, expecially because the user doesn't know what your function helper is doing exactly. So actual fixed test are way more useful.
Okay :c
It's not first Shell kata with same problem for me – optimization
Will unlock solutions then, maybe I don't know some crucial tools for such problems
Thank you for kata, I really enjoyed it :з
Sorry, the time out is fixed by CW. Furthermore I can't reduce the tests when some people are timing out...
11 people passed the Shell kata so it's doable in the given time. There is a solution that takes 1275 ms and there are some below 2000 ms. Cheers.
This comment is hidden because it contains spoiler information about the solution
Wow! Because of this even legit but not optimal solutions are invalidated!
This comment is hidden because it contains spoiler information about the solution
More than this - user can copy-paste initial maze structure from postmortem log and try it in sample test.
Added all this in the description of kata.
Loading more items...