didn't work on the following argument array: 4ic6j - Expected: '3pen', instead got: 'invalid word' didn't work on the following argument array: 4ty439 - Expected: '2ante-pen', instead got: 'invalid word'
---
Sometimes I can catch the above error in random tests. The original solution seems to treat such cases wrong.
Description should define what is supposed to be considered a syllab here (syllabification in English is far from being a trivial question in general, and this is supposed to be a programming challenge, not a linguistics exam; I guess the kata only tests obvious cases, but anyhow something is missing).
didn't work on the following argument array: 4ic6j - Expected: '3pen', instead got: 'invalid word'
didn't work on the following argument array: 4ty439 - Expected: '2ante-pen', instead got: 'invalid word'
---
Sometimes I can catch the above error in random tests. The original solution seems to treat such cases wrong.
Python:
Missing
it
block in sample testsImports are missing
You can pass some tests if you provide array with decimal codes od letters.
Description should define what is supposed to be considered a syllab here (syllabification in English is far from being a trivial question in general, and this is supposed to be a programming challenge, not a linguistics exam; I guess the kata only tests obvious cases, but anyhow something is missing).
Random tests (in JavaScript at least) use too limited a range of inputs; a hardcoded solution can be easily derived.
Python testing allows for incorrect solutions to pass, critically so in regards to the simple upper edge case of 100; here's an extreme example.
This comment is hidden because it contains spoiler information about the solution
C++ Translation
Edge cases at len = 100 and 101 might be helpful. There are no guaranteed test cases at these lengths.
Some solutions will reject a string of 100 characters, yet still pass the test cases.
Python translation added
Maybe include a Test for
n=3.166312747397789
. I've seen a solution which would output 8 as result.The example tests needs serious improvement:
assertNotSimilar
tests thrown at the end using 'shouldn't expect this' value of the other kind? It causes nothing but confusion.CofeeScript Translation Kumited! Please accept :d
Loading more items...