Hey I like this kata but I think there is a mistake in the second test.
Test.assertEquals(touchType(' two spaces'), 'LLLLRLLRLLLL', 'Should work for the description examples')
The first 'L' ist right because there was no char before. But the second should be a 'R' because its a space as well and we typed the char before with 'L' or am I wrong?
You can't and there aren't any here. The colon is a chracter in the string to be matched, the question mark renders the preceding element optional.
lol damn never knew you could do ternany conditions inside a regex pattern
Floating point representation problem? It should pass.
This solution does not pass for 9.
Not an issue.
Haskell translation
Nice kata. :)
Random tests with spaces should have been more extensive though.
Nope ;-)
Not an issue
Hey I like this kata but I think there is a mistake in the second test.
Test.assertEquals(touchType(' two spaces'), 'LLLLRLLRLLLL', 'Should work for the description examples')
The first 'L' ist right because there was no char before. But the second should be a 'R' because its a space as well and we typed the char before with 'L' or am I wrong?
thank you)
Using $ in identifiers here is very cute. I like.
It is a silly mistake. Thanks.
Thank you.
Loading more items...