Thanks for the heads up on this. I've fixed the problem by changing the random test fixtures.
The problem was with the way I was generating the random tests. The test suite won't test for actual korean words anymore, but it won't expect NaN either :)
An invalid input 'ㅉ' was given as final consonants in random tests. As per the linked article on Wikipedia (https://en.wikipedia.org/wiki/Korean_language_and_computers#Hangul_in_Unicode) 'ㅉ' is not part of final consonants.
These are not valid Hangul compositions.
Interesting kata anyway! Really enjoyed the challenge :)
thank you! I've fixed that now, and thanks :)
It doesn't make a huge difference, but the array in the first test case has 8 elements instead of 9 (missing a
""
at the end).Good kata!
Thanks for the heads up on this. I've fixed the problem by changing the random test fixtures.
The problem was with the way I was generating the random tests. The test suite won't test for actual korean words anymore, but it won't expect NaN either :)
It seems some random tests are expecting "
&#NaN;
". eg :Is this really what you're expecting ?
Thank you! I've fixed it.
This comment is hidden because it contains spoiler information about the solution