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.
Such an awesome solution! Well done!
Nice, I like this too. It didn't occur to me.
My bad, thank you.
I can't see any tests for this in JavaScript. Though when I submit, it says 5 Tests Passed, and one failed, but the reason for the failure is super strange, it makes no sense.
If you're doing this in C#, don't bother. It doesn't work even if you've done it correctly and get your tests passing. Not getting any reply from person that translated this Kata to C# either.
Hi hbakhtiyar
I am getting an error when doing this on C#. My tests pass, but when I submit, I get an error. See my other comments.
How do I get to the C# translator? I thought I was posting this under C#!
Sorry, language is C#.
======================
XbonacciTest
BasicTests
Expected is , actual is
Values differ at index [1]
Extra: < 1.0d, 1.0d >
at XbonacciTest.BasicTests () <0x41545bf0 + 0x005d0> in :0
Testing for signature: 6, 9, 18 and n: 45
Testing for signature: 1, 3, 17 and n: 38
Testing for signature: 16, 0, 14 and n: 34
Testing for signature: 16, 3, 10 and n: 25
Testing for signature: 9, 6, 3 and n: 32
Testing for signature: 9, 5, 9 and n: 31
Testing for signature: 8, 3, 16 and n: 26
Testing for signature: 5, 1, 12 and n: 15
Testing for signature: 3, 15, 16 and n: 37
Testing for signature: 19, 2, 5 and n: 49
Testing for signature: 5, 3, 17 and n: 21
Testing for signature: 11, 17, 17 and n: 14
Testing for signature: 10, 0, 17 and n: 45
Testing for signature: 11, 3, 17 and n: 1
RandomTests
It should work with random inputs too
Expected is , actual is
Values differ at index [1]
Extra: < 3.0d, 17.0d >
at XbonacciTest.RandomTests () <0x41554a70 + 0x002af> in :0
0 Passed
2 Failed
0 Errors
Process took 609ms to complete
I got my tests passing (including when n = 0) but when I submit I get an unclear error. I want my 6 kyu! :(
I loved this! Thank you, learned a lot here.
This is way clearner than mine, can you please explain how it works?