Ad
  • Default User Avatar

    same problem on Python. 53 tests from 54 was done. ALl random was done. 1 basic failed, and can't see what test did they use.

  • Default User Avatar

    comp([2,3],[4,9],1).
    comp([2,3],[4,9],0).
    Both can't be true.

    comp([2,3],[4,9])
    comp([2,3],[4,9])
    

    These are not the original arrays that are given in the tests you mention.
    I am sorry but your code is wrong somewhere. These tests are the same in all languages and you can see at the top of the page how many people passed the kata.
    BTW I see that you are new at CW but don't post issues too fast:-) Cheers!

  • Default User Avatar

    Prolog comp testcase has an error - probably from copy paste.
    I didn't know what was wrong, so I leaked the comp testcases and found that
    there are identical testcases, but with different expected results.

    A1:
    [11,19,121,144,161]=1
    [11,19,121,144,161,191,195,1440]=1
    [0]=1
    [2,3]=1
    [2,3]=0

    A2:
    [121,361,14641,20736,25921]=1
    [121,361,14641,20736,25921,36481,38025,2073600]=1
    [0]=1
    [4,9]=1
    [4,9]=0

    comp([2,3],[4,9],1).
    comp([2,3],[4,9],0).
    Both can't be true.

  • Custom User Avatar

    Oh, Thank you Chrono79

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    It is indeed not showing the debug information in 7.4, change the version to 7.0 and it'll show. It's not a kata specific problem, and I already reported it as an issue here

  • Custom User Avatar

    you're not helping. I mean i can't even print a simple string.
    I did other kata, and i can print (in php) but not in this kata

    edit: I found a difference in output :

    -this one show "details" and doesn't show what i print,
    -others show "log" and can show what i print

  • Default User Avatar

    Google "php print array".

  • Custom User Avatar

    Hello

    I m using PHP, and i didn't suceed to print the input .
    I tried var_dump, print_r, echo ... own function to show with console.log().

    How i can show the inputs?

    ps: I tried JavaScript, and it works with console.log()

  • Default User Avatar

    @dunlee: print the input to see where you are failing.

  • Custom User Avatar

    When you press Test, only sample tests (the ones you see) are executed, and you passed these.
    When you press Attempt, full test suite (which you cannot directly see) is executed, and your solution fails there.
    Probably Basic tests in full test suite are different than Basic tests in sample tests. Or your solution has some intermediate state carried between test cases. If you share the language you are trying to solve, someone could check.

  • Default User Avatar

    pressing TEST -> Passed: 1 Failed: 0

    Fixed Tests comp
    Basic tests
    Test Passed

    pressing ATTEMPT -> Passed: 100 Failed: 1 Exit Code: 1

    Fixed Tests comp
    Basic tests
    expected true to equal false
    All random tests PASSED

    How this can be?