There are no checkings on the number of oranges after picking an orange.
There are also no checkings on whether there are any oranges to pick (e.g a tree in the first 5 years have no oranges, so you shouldn't be able to pick any from it).
pick_an_orange (which reduces the @orange_count by 1 and returns a string telling you how delicious the orange was, or else it just tells you that there are no more oranges to pick this year).
The return value in the non-dead case isn't even specified. It's hidden in the random tests.
For the first 5 years, it should not produce fruit, but in its sixth year it should, and older trees produce more each year than younger trees... (at a rate of height * 15 - 25 per year)
Random tests are still awkward. In example tests, the format is xx:xx:xx.xxxx
Random tests can have deviating formats, for example 2:5:5.527 or 8:24:13.477.
Also, you should specify exactly in what manner the resulting float should be cut down to three decimals: your solution seems to rounds them - my first attempt was to simply truncate.
There are no checkings on the number of oranges after picking an orange.
There are also no checkings on whether there are any oranges to pick (e.g a tree in the first 5 years have no oranges, so you shouldn't be able to pick any from it).
The return value in the non-dead case isn't even specified. It's hidden in the random tests.
Height at the 5th year or the 6th year?
Anyone to appove this python translation?
lol, I didn't notice this beta has been sleeping for six years. Sorry!
Random tests are still awkward. In example tests, the format is xx:xx:xx.xxxx
Random tests can have deviating formats, for example
2:5:5.527
or8:24:13.477
.Also, you should specify exactly in what manner the resulting float should be cut down to three decimals: your solution seems to rounds them - my first attempt was to simply truncate.
Python translation kumited -- please check and approve (note: author is inactive)
Ruby 3.0 should be enabled (Refer this & this for more detail)
Missing fixed or sample tests whereby last word in list is not
BYE
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
changed
That's the point.
Done.
funny but nice ........
Python 3 should be enabled.
The description and sample tests now include all the needed information.
Loading more items...