Ad
  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    +1
    It really looks like the expected string is wrong in the test!

    actual: ドモアリガトゴザイマス
    expected: ドモアリガトゴザイマ���

    Would be great if someone could fix this.

  • Custom User Avatar
  • Custom User Avatar

    Same problem here. Following kata author's "hint" from six months ago re: using decode on all string inputs, and encode on all outputs, but still failing this one test. Debugged by printing out the lengths of the input/output both before and after encode/decode, and it all looks good to me ...

  • Custom User Avatar
  • Custom User Avatar

    Same here for me…

  • Custom User Avatar

    I've got the same problem. Which is frustrating since I was proud that I'd figured out encoding for the katakana with python.

  • Custom User Avatar

    I have this exact issue :(. Although, because I'm checking my length after the decoding the len() result gives me 11 for all of them. I wish this was fixed. Would love to complete this kata.

  • Custom User Avatar

    You're not alone, I have the very same issue :) In earlier test you encode it to this string, while decoding result is of length 39 instead of 33, which is odd - I guess we'll have to wait for someone more knowledgeable. Edit: It seems that most of solutions have the exact same problem (I've checked 10+ and all of them had this issue); something most likely happened to the last test as your answer is indeed correct :)

  • Custom User Avatar

    Hi, one test with katakana is failed. I have add some debug lines to trace, and what I see?
    Test string is successfully decoded! But test failed for some reason. Whats wrong?

    String to encode : ドモアリガトゴザイマス, length: 33
    encoded : ドオカセガヨゴザキアニ, length 33
    ✔ Test Passed
    String to decode : ドオカセガヨゴザキアニ, length 33
    decoded : ドモアリガトゴザイマス, length 33
    ✘ '\xe3\x83\x89\xe3\x83\xa2\xe3\x82\xa2\xe3\x83\xaa\xe3\x82\xac\xe3\x83\x88\xe3\x82\xb4\xe3\x82\xb6\xe3\x82\xa4\xe3\x83\x9e\xe3\x82\xb9' should equal '\xe3\x83\x89\xe3\x83\xa2\xe3\x82\xa2\xe3\x83\xaa\xe3\x82\xac\xe3\x83\x88\xe3\x82\xb4\xe3\x82\xb6\xe3\x82\xa4\xe3\x83\x9e\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd'