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.
Java
I enjoyed this kata since I'm a big fan of regular expressions, But it's more suited at 5kyu instead of 4.
That was fun :-)
Ruby version kumited, please check and comment or approve.
Which language did you solve in?
There is a strange requirement: "true123 is an identifier, as opposed to boolean followed by integer".. Looks like foreign for this task. Actually I ignored it (did not check and maintain this case). And my solvation passed all tests! May be you should remove this requirement from kata description?
Oh, you are right.
I don't know Java, but a quick search reveals that
next()
should throw an exception when there's nothing more to return. Since this is the official spec of the interface, I'd say it's rather more obvious than not.To pass "testException" in Java you have to throw an exception in "next()" if the string is empty, which is not obvious. Returning null or new Token(null, null) in "next()" or false in "hasNext()" doesn't work.
approved
Rust translation ready for review.
Also (probably) needs new fixed tests to match new spec.
Also (probably) needs improved fixed tests to match new spec.
You seem to have outdated sample tests. You can either:
I have gathered input and tuned the details of my fork, then went ahead and approved it.
Loading more items...