Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
+1
+1
It really looks like the expected string is wrong in the test!
actual: ドモアリガトゴザイマス
expected: ドモアリガトゴザイマ���
Would be great if someone could fix this.
+1
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 ...
+1
Same here for me…
I've got the same problem. Which is frustrating since I was proud that I'd figured out encoding for the katakana with python.
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.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 :)
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'