Yes, i know. I assumed it is returning None because for example age(70, 4.666666666666667): in line 4 "julie / y" results in 14.999999999999998 instead of the expected 15. Thus there is no match to "== brother" in the same line and therefore the if-statement fails and there's nothing to return. Am i mistaken?
js fork
mocha/chai
assertions +lodash
for randomnessLua fork
oh I do have non-random ones for that case. let me just add a couple more...
mm thanks for sharing the example
yeah sure
nice!
4132ms ^_^
grah
Yes, i know. I assumed it is returning None because for example age(70, 4.666666666666667): in line 4 "julie / y" results in 14.999999999999998 instead of the expected 15. Thus there is no match to "== brother" in the same line and therefore the if-statement fails and there's nothing to return. Am i mistaken?
That's not why your code fails. Your code is returning
None
for some inputs.Tests failing to lack of rounding (f.e. 14.999999999999998 instead of 15). Please help!
The initial solution should have
#include <string>
Description should be language-agnostic
Rounding requirement in test setup should be removed after all languages have been updated
Lua:
floating point comparison should be enforced
CS:
floating point comparison should be enforced
Loading more items...