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.
same problem...
/e
solved it!
thanks for test cases :)
I don't get the logic of third test. Why [-1] instead of [-1,0]?
Different stack sizes?
I have the same issue, how you solve?
You can console.log the argument and it will show in the output.
No it's not an inside joke, but it is a joke. If you solve the kata you'll see what I mean.
I can't edit it anymore, here are more descriptive tests
Test.expect(arraysEqual(Array.range(0,0), []), 'A count of 0 should make an empty array')
Test.expect(arraysEqual(Array.range(0,1), [0]), 'A count of 1 should make an array with 1')
Test.expect(arraysEqual(Array.range(-1,1), [-1]), 'The array's first value should begin with start (aka range(-1,1) should return [-1])')
Test.expect(arraysEqual(Array.range(1,1), [1]), 'The array's first value should begin with start (aka range(1,1) should return [1]')
Test.expect(arraysEqual(Array.range(-1,3), [-1,0,1]), 'Testing count (aka range(-1,3) should be [-1,0,1])')
Test.expect([].sum() == 0, 'empty array should sum to 0')
Test.expect([0, 1, 2].sum() == 3, '[0,1,2] should equal 3')
Test.expect([-1, 0, 1].sum() == 0, 'Adding negative numbers')
Test.expect([1, 2, 3].sum() == 6, '[1,2,3] should equal 6')