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.
I removed all tests where expected and actual values were switched. But there are still tests in the form
Yes, there are also test cases in the form
strictEqual(expected, next())
.Thanks for the response. What I noticed is that the test actually looks like this:
If this is the case, it means that I need to return
previous
value of expected, notnext
, sinceexpected
was already executed, right?This is truly interesting kata, but if this is the case then the whole kata is a bit missleading.
I will try to solve it either way!
The
No modify expected variable
test looks like this:Hint: you need to do something outside of the function
next
in order to pass this test. (The initial solution has this line:// Hint: Initial code
.)Please post your current solution in a comment with the spoiler flag.
The description actually said enough, it's on you to be creative and try to figure out what is happening. In realaity you rarely have 100% information of the problem, but instead you get only small portion of it and need to figure out a solution ;)
I can't pass
No modify expected variable
test, even though right before the return I see in the logs the correct value!And I am not modifing the
expected
value so the error description makes no sense.Can I get a hint what might be wrong? I am pretty sure that my solution should work.
I agree that it is not a 5kyu. It had an average assessment of 4kyu but it was approved as a 5kyu and I have no idea why.
Really bad kata, you need tell people, what we need to do. This kata with almost 0 contructive description, really bad kata.
I didn't get it even after i saw solutions. Maybe its not 5kyu? Maybe i'm just stupid?
Updated
Test should be updated. See this guide.
The author updated the tests.
this shouldn't work
Ok, but I think that code isn't cheating and I use a for loop there, so maybe specify it better in the description?
Loading more items...