The same functions, with tests that reach them all

The complete source of coverage_report.ek9, compiled by the EK9 compiler. Shown on coverage.html.

#!ek9
defines module site.coverage.report

  defines function

    celsiusToFahrenheit() as pure
      -> celsius as Float
      <- fahrenheit as Float: celsius * 9.0 / 5.0 + 32.0

    fahrenheitToCelsius() as pure
      -> fahrenheit as Float
      <- celsius as Float: (fahrenheit - 32.0) * 5.0 / 9.0

    describe() as pure
      -> celsius as Float
      <- rtn as String: celsius < 0.0 <- "freezing" else "not freezing"

Download coverage_report.ek9