moduleMainTestexposing(suite)importExpectexposing(Expectation)importTestexposing(Test)importMainexposing(populationGrowth)suite:Testsuite=Test.describe"Population Growth"[Test.test"It should return 3 with a starting population of 1000, a percentage of 2% and an increase of 50 to reach 1200 people"<|\_->Expect.equal3<|populationGrowth10002501200,Test.test"It should return 15 with a starting population of 1500, a percentage of 5% and an increase of 100 to reach 5000 people"<|\_->Expect.equal15<|populationGrowth150051005000,Test.test"It should return 10 with a starting population of 1500000, a percentage of 2.5% and an increase of 10000 to reach 2000000 people"<|\_->Expect.equal10<|populationGrowth15000002.5100002000000,Test.test"It should return 94 with a starting population of 1500000, a percentage of 0.25% and an increase of 1000 to reach 2000000 people"<|\_->Expect.equal94<|populationGrowth15000000.2510002000000]
$docker run --rm--interactive--tty--volume"$(pwd)":/home/elm/app aminnairi/elm-test tests/**/*.elm
TEST RUN PASSED
Duration: 278 ms
Passed: 4
Failed: 0
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Elm
I was too lazy, just put floats everywhere.
Tests