Did you try it? From time to time I remind people to return to their katas
I thihnk it would be better to test all the numbers: all positive and all negative shuffled. Thus getting rid of random test at all.
Approved.
fork addressing Voile's points below (author inactive)
Date
This comment is hidden because it contains spoiler information about the solution
I did the same. I like it
when you return you don't need to add the break couse you already breaking the code
[not a kata issue]
your code fails a fixed test, here is the error message:
'Should handle negative numbers. For input n = -13, m = -13: expected NaN to equal +0'
which means your code returned NaN for that test. then your code fails any similar test during the random tests
so, you need to rework your code to handle negative numbers
JavaScript: Passed all tests but, after clicking Attempt it shows another 2 tests that are not passed
python new test framework
Good practice for Python
For such a short string is not something to bother about, and it feels cleaner for this specific problem
exactly my thoughts!
Appears to be the case in Python at least.
Loading collection data...
Did you try it? From time to time I remind people to return to their katas
I thihnk it would be better to test all the numbers: all positive and all negative shuffled. Thus getting rid of random test at all.
Approved.
fork addressing Voile's points below (author inactive)
Date
objectThis comment is hidden because it contains spoiler information about the solution
I did the same. I like it
when you return you don't need to add the break couse you already breaking the code
[not a kata issue]
your code fails a fixed test, here is the error message:
'Should handle negative numbers. For input n = -13, m = -13: expected NaN to equal +0'
which means your code returned NaN for that test. then your code fails any similar test during the random tests
so, you need to rework your code to handle negative numbers
JavaScript: Passed all tests but, after clicking Attempt it shows another 2 tests that are not passed
python new test framework
Good practice for Python
For such a short string is not something to bother about, and it feels cleaner for this specific problem
exactly my thoughts!
Appears to be the case in Python at least.
Loading more items...