Ad
  • Custom User Avatar

    The expected value for that test is this one: 1:ooo/1:uuu/2:sss/=:nnn/1:ii/2:aa/2:dd/2:ee/=:gg"

  • Custom User Avatar

    Seems like this kata has issues in test in js part

    //2nd case
    expected '1:ooo/1:uuu/2:sss/=:nnn/1:ii/2:aa/2:dd/2:ee/=:gg' to equal '1:ooo/2:sss/1:uuu/=:nnn/1:ii/2:aa/2:dd/2:ee/=:gg'
    

    The description says:

    when they have the same length sorted in ascending lexicographic order (letters and digits - more precisely sorted by codepoint)
    

    I assume they must be ordered based on full substring (like i need to compare 1:uuu with 2:sss for example), but in that case 2:sss/1:uuu part of the test assertion breaks the rule.
    Same problem if the substrings must be sorted based on corresponding character (like u and s) - then the 1:ii/2:aa part breaks the rule.

    There are three possible reasons - description is incorrect, tests are incorrect, or i'm really dumb

    If you guys know how exactly it should be sorted, please tell me...