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.
Approved
python new test framework is required. updated in this fork
Ok, thanks, it really sounded strange to me.
No - it is correc t as written (standard English would be to say 0 hours, not 0 hour)
Tests expect 'The train will be there in 0 hours.', but wouldn't be correct to rather say 'The train will be there in 0 hour.' ?
Thanks for updating it; I've approved it now!
The translation should be ok now.
Thank you for translating my kata! I have approved the CoffeeScript, Ruby and Crystal translations.
Wihin the Python translation, I noticed that the code within "Example test cases" has been cut off in the third example case. I attempted to create and publish a fork where I fixed this, but because the solution code was identical to your version, it wouldn't allow me to publish it (at least I assume that's the issue - when I clicked "Publish" I received an error message stating "Code must be unique from parent"). Could you edit this within your fork?
Cofeescript translation available here, you can review and accept if ok.
Ruby translation available here
Crystal translation available here
Finally Python translation available here
Thank you! I'm glad you enjoyed it :)
Nice first kata! Thanks!
Haha, slick fix, I like it!
BTW, I don't know if you marked this as an issue of if I did when I wrote it. If I did it was unintentional! Comment, not issue, on my part.
Thanks for the feedback! Looking over it again, I have to say that I agree, so I've now updated the instructions so it makes more sense to be asking for the time as a number rather than a string.
The conditions, to return 1 hour but 2 hours and 0.5 hours: Although I'm hard pressed to say there's anything wrong with them, exactly, don't really seem consistent or inutuitive.
On the one hand the objective is to replicate spoken grammar, but who says "one point 5 hours" or "0.5 hours"?
It's just a style thing, but I'd be tempted to add a bit of complexity around the return format - say, to the nearest 5 minute interval if < 1 hour and to the nearest half hour for > 1 hour.
Just a thought!
Loading more items...