Ad
  • Custom User Avatar
  • Custom User Avatar
  • Default User Avatar

    My code in VS CODE works perfectly with basic tests, but in codewars, with random tests, that have a long expected result, I have a problem.
    Is there any way to see test arguments?

  • Custom User Avatar

    Because ['1','2','3'] is not an array of numbers.

  • Default User Avatar

    It is not clear to me why the test with integers cannot pass. The function([1,2,3]) gives the expected result ['1','2','3'] but the test still does not pass

  • Default User Avatar

    Pay attention, my friend, on last element of test2 array. There is diffrence. In instructions is "5", but in Tests is "3", becouse length of arrays is diffrent. In instructions parameter "n" presents maximum INDEX of fib. Array, and on Tests "n" presents maximum length of array.

    I've tested my code in console, and it works as expected, but when it's pasted in codewars, error pops up. That's how error is spoted.

  • Default User Avatar

    In the description there is an example 9 -> 44
    In the js tests there is a test 9 -> 44
    How is that different? It's exactly the same. Maybe your code is off by one.

  • Default User Avatar

    In JS version, in Test_2, expected result is 44 but it should be 10.

    Problem is difference between instructions and tests
    Instruction → INDEX in the Fibonacci sequence → Exemple 1, n=5, [0,1,1,2,3,5]
    Tests → Arrray.length → Test 1, n=5, [0,1,1,2,3]

  • Default User Avatar

    Maybe it's better to set tips for 7 on 10 (in tests it is 9).

  • Custom User Avatar

    Read the description again.

  • Default User Avatar

    JavaScript, wrong samples 99 and 983212

  • Custom User Avatar

    Adjusted some languages to use [32; 126] character range. Reset the trainer, and it should work fine.

  • Default User Avatar

    I have problem with random receive. Every time random text include one unprintable character witch is not in range of ASCI code 32 - 127. As expected result I get some wierd characters. "to equal" result, same character is unprintable, even in VS code, when I copy/paste, it is presented as empty space.

    Maybe you could enter this string as test:
    ' !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~'

  • Default User Avatar

    Not quite sure what you are asking, but you can't call .length on a null. Issue in your code.

  • Default User Avatar

    Should be fixed. Thanks

  • Loading more items...