Good job on the random tests! My only small suggestion is to remove the numbers 5-9 from var possible within your random string generator as it would be more in line with your kata description for the strings to only contain 0-4(in lieu of vowels).
I heard about people having this problem in typescript (see here and here). Maybe you should ask on github. Sorry I can't help more than that, since I haven't seen this issue in JavaScript before. Oh and be sure to check if Node version in the kata creator is the latest v6.6.0, sometimes it switches back to the old version for no reason and makes ES6 syntax invalid.
Thanks for the feedback, I'm working on this at the moment. I've created a random test for my Kata which works when I press 'Validate Solution' as all tests pass, but when I try to Republish I get the following error - 'Final Solution is invalid. (javascript) The solution should pass the provided test cases. '. Anyone know why this is?
Fixed
Oh I'm dumb. I forgot that
methods
only refer to functions, not variables.Good job on the random tests! My only small suggestion is to remove the numbers 5-9 from
var possible
within your random string generator as it would be more in line with your kata description for the strings to only contain 0-4(in lieu of vowels).resolved.
Codewars has fixed the error, and random tests are up now. Thanks for the help :)
I heard about people having this problem in typescript (see here and here). Maybe you should ask on github. Sorry I can't help more than that, since I haven't seen this issue in JavaScript before. Oh and be sure to check if Node version in the kata creator is the latest
v6.6.0
, sometimes it switches back to the old version for no reason and makes ES6 syntax invalid.Thanks for the feedback, I'm working on this at the moment. I've created a random test for my Kata which works when I press 'Validate Solution' as all tests pass, but when I try to Republish I get the following error - 'Final Solution is invalid. (javascript) The solution should pass the provided test cases. '. Anyone know why this is?
Agreed, nice kata. Won't get approved without random tests though - theres even a solution in the list that cheats this :D
Added this into the description :)
It appears test case #6 is broken. It's expecting an ending period where there was none in the input.
Nice first kata. You should add some random tests though, just to prevent people cheating.