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.
Hi! Thanks for feedback.
It seems that
Test.assertEquals
usesTest.inspect
, which in turn uses stringify... which is strange, as it presumes comparison with===
.Changed a test fixture to use
Test.expect
with===
when comparing objects, try re-submitting. And please check that the context is correctly passed to the handlers, because a correct solution shouldn't have this problem.In the second case you are modifying the scope var
args
in resulting function call, which can lead to incorrect behavior at its subsequent calls:
Thank you for the feedback. Unfortunately all the emails from codewars have been sent to spam for the last few weeks, and that's why I didn't fix the issue right away.
Added an example for the context
This comment is hidden because it contains spoiler information about the solution
This is a good point, and there are a lot of katas here like that, but IMHO such description doesn't explain why would you need such a function in the first place, or how it can be used in less artificial cases.
In my experience, in real life you seldom get a clear objective, more like some vague description of a problem with more than one way to deal with it (although this kata is not the case). That's why I now try to make my kata more descriptive, especially low level
Thanks for the tips, I'll try to be more careful in advance))
Still, is it possible to block any navigation attempt (which is not a "happy path" of kata completion) with a confirmation window, or it doesn't work with history? I saw something like that in kata creation page, that's why I am asking.
Argh! It happened again!
Can you please implement an autosave or at least make the kata page prompt you before navigation if the values in the text boxes have changed? because sometimes it goes back on its history on Mac after a careless swipe. Of course when I navigate forward again all my code is lost.
It was fine when katas were short, but if this happens after about an hour of coding...
You do not test against an animal which checks a
name
argument but does not initthis.name
- probably because of a typo in the test case:The new layout is pretty cool, but the profile page seems to be a little broken:
Firefox 26, OSX 10.8.5
Why add this block to the profile and dashboard - and not to the library aka catalog (katalog?)
You need to add more test cases - specifically for
&
- and try to make them random, to exclude the possibility of brute-force solution, likeGood job!
You can read this link for more information about Codewars test framework
This comment is hidden because it contains spoiler information about the solution
Good point. I will certainly fix that, although not right now
BUMP: Feedback and ranking, anyone?))
The right answer for the hard-coded answers problem is: generate new dates for each test run.
You have a working solution, it's possible to just add it to the fixture with another name and compare its results to a warrior's solution results for any random date. And since you will publish this dates to the output, a warrior will be able to see the cases where his/her solution fails - while being unable to hard-code any answers
Loading more items...