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.
Hi Johan, I've added in the conversion figures to work to in the description to hopefully clarify this. Please let me know if this still isn't working for you and then it'd be best if I could look at your code to make sure there isn't anything I have overlooked.
The random tests have now been added in too.
This has now been fixed, hopefully :)
I have the correct formula, apparently, but I'm off by a couple inches on the huge corridors. I have been unable to figure out if a foot is 30 or 30.48 cm; neither seems to work.
Please specify exactly how long your foot is.
( Also, needs random tests. )
Thank you. Will work on this this evening.
I've also edited the kata to ensure there's a required metric conversion along with splitting between feet and inches and rounding down etc. No doubt still very easy for you, but hopefully requiring a bit more work from others :)
Yes was just having a dunce moment there! Think this is sorted now, thanks for flagging.
Usually it boils down to:
I think you just need to copy your current actual tests as sample tests. ;-)
Sorry again for this, thought they were. How do they need to be fixed?
Thanks for flagging. Sorry, will fix now. What's the best way to create random tests?
Sorry not interesting. It does potentially give people the chance to practice some fundamentals as you can use the .pow function for example etc. However it was first kata and just wanted to keep it simple to ensure it was something I could put together. Will work on more interesting ones for you :)
This kata ultimately boils down to searching the exact problem on the internet, clicking on the first result, and copying the short, one-line formula. And it's intractable to people without a non-trivial amount of education in maths.
I don't think this kata is interesting at all.
Needs random tests.
Sample tests are not tests.