Ad
  • Custom User Avatar

    Such an awesome solution! Well done!

  • Custom User Avatar

    Nice, I like this too. It didn't occur to me.

  • Custom User Avatar

    My bad, thank you.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    How do I get to the C# translator? I thought I was posting this under C#!

  • Custom User Avatar

    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

  • Custom User Avatar

    I got my tests passing (including when n = 0) but when I submit I get an unclear error. I want my 6 kyu! :(

  • Custom User Avatar

    I loved this! Thank you, learned a lot here.

  • Custom User Avatar

    This is way clearner than mine, can you please explain how it works?