Ad
  • Custom User Avatar

    OP solved it, closing

  • Default User Avatar

    I believe it's because when you run the full test suite it randomly generates a new alpha dictionary, but the sample tests are still based on the fixed basic alpha. When you run the full test suite, it actually calculates using the new, random alpha, and that's why you passed when it came to the full test suite.

    It's just a bug in the kata caused by making alpha a global, preloaded variable instead of a parameter (as it probably should have been). If it causes any problems, you can get around it by resetting the alpha at the beginning of the sample test suite.

    (sorry, i know this is an old post, but i'm also leaving this here for anybody having future difficulties with this kata)

  • Custom User Avatar

    Added a fixed test to all languages just in case.

  • Custom User Avatar

    read the docs.

    wait... that's actually an issue, apparently...

  • Custom User Avatar

    Given it's Python you're talking about too:

    def comp(array1, array2):
        print(array1, array2)
        # your code here
    
  • Default User Avatar

    Crono, I'm not understanding how to do this. I tried this:

    print(comp(a1, a2))
    and this:
    print(comp(input))
    and this:
    print(input)

  • Custom User Avatar

    Literally, print the input. The log appears above the test result.