In Kolin 'expected' and 'actual' should be the other way round
Great Kata! Flex your math skills and try to build without Content :D
This comment is hidden because it contains spoiler information about the solution
It seems that somebody has changed the function signature which must be:
fun evaporator(content: Double, evap_per_day: Double, threshold: Double): Int { }
I put it back. Thanks for your post.
In Kotlin when running the sample tests on the starter code:
src/test/kotlin/fixture.kt:7:33: error: the floating-point literal does not conform to the expected type Int assertEquals(22, evaporator(10.0,10.0,10.0))
Loading collection data...
In Kolin 'expected' and 'actual' should be the other way round
Great Kata! Flex your math skills and try to build without Content :D
This comment is hidden because it contains spoiler information about the solution
It seems that somebody has changed the function signature which must be:
I put it back.
Thanks for your post.
In Kotlin when running the sample tests on the starter code:
src/test/kotlin/fixture.kt:7:33: error: the floating-point literal does not conform to the expected type Int assertEquals(22, evaporator(10.0,10.0,10.0))