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.
approved, but can't mark suggestion as resolved
Merged.
As the author of the groovy translation, I second this.
That's not true. It expects False for another reason.
"entered_code" equal to zero is considered invalid. it's just not written directly in the condition
Both tests (they're not exactly the same) expect
False
, your code is returningTrue
for the first one. Not a kata issue.Two inputs like that
input: 0 False September 5, 2014 September 25, 2014
But one wrong, one right
Python Fork that replaces
last digit of date
withlast digit of day
Java Translation
Rejected, please see remarks in fork
Please, aprove the Groovy Fork
Changes in Sample Tests:
JUnit assertion Assertions.assertEquals(expected, actual) takes the EXPECTED value as the FIRST argument and the actual as the second.
The implementor of the initial Groovy translation did this the other way around and assertion failure will result in an incorrect message. For instance, if we hardcode the return value of decode() function as 'Boo', test-failure message will be
instead of proper failure message
Changes in Random Tests:
JS fork resolving this issue
mocha/chai
assertions andlodash
for randomnessThis comment is hidden because it contains spoiler information about the solution
Enabled in this fork
Loading more items...