Ad
  • Custom User Avatar
  • Custom User Avatar

    You're not printing the input values there.

    def scramble(s1, s2):
        # your code here
        print(s1, s2)
        pass
    

    Use that.

  • Default User Avatar

    No hes talking about the other tests, I had the same issue. heres a attachted screen shot of the logs: https://imgur.com/a/WOoPCId

  • Default User Avatar

    You can see in the sample tests that this case should return true:

    describe('Example Tests', function(){
      //Test.assertEquals(scramble('rkqodlw','world'),true);
      //Test.assertEquals(scramble('cedewaraaossoqqyt','codewars'),true);
      //Test.assertEquals(scramble('katas','steak'),false);
      //Test.assertEquals(scramble('scriptjava','javascript'),true);
      Test.assertEquals(scramble('scriptingjava','javascript'),true);
      //Test.assertEquals(scramble('scriptsjava','javascripts'),true);
      //Test.assertEquals(scramble('jscripts','javascript'),false);
      //Test.assertEquals(scramble('aabbcamaomsccdd','commas'),true);
    });
    
  • Custom User Avatar

    it does'nt and i am not misreading the logs.

  • Custom User Avatar

    Not a kata issue. That test expects True, you're misreading the logs, please read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#print-input

    test.assert_equals(scramble('scriptingjava','javascript'),True)
    
  • Custom User Avatar

    My code works absolutely correct but your checking is wrong. I got it to log your str1 and str2 and my answer your

    str1 = scriptingjava
    str2 = javascript
    MY_ANSWER = javascript

    !should return False

    why should it return false?