Ad
  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar
        test.assert_equals(assistance(0), "Error", "Not right!"), 
        test.assert_equals(assistance(20), "Nothing to hang", "Not right!"), 
        test.assert_equals(assistance(22.5), "Error", "Not right!"), 
        test.assert_equals(assistance(25), "Only lock", "Not right!"), 
        test.assert_equals(assistance(30), "1 orange, lock", "Not right!"), 
        test.assert_equals(assistance(35), "1 black, lock", "Not right!"), 
        test.assert_equals(assistance(50), "1 green, 1 orange, lock", "Not right!"), 
        test.assert_equals(assistance(65), "1 blue, lock", "Not right!"), 
        test.assert_equals(assistance(100), "1 red, 1 green, 1 orange, lock", "Not right!"), 
        test.assert_equals(assistance(102.5), "1 red, 1 green, 1 orange, 1 white, lock", "Not right!"), 
        test.assert_equals(assistance(103), "Error", "Not right!"), 
        test.assert_equals(assistance(345), "6 reds, 1 green, lock", "Not right!"), 
    

    On these 12 sample tests on python it says "Not right". Is this supposed to be in this kata?

  • Custom User Avatar

    Ok Thanks

  • Custom User Avatar

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