Ad
  • 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

    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)