Production code: the functions to test

The complete source of testing_asserts.ek9, compiled by the EK9 compiler. Shown on testing.html.

#!ek9
defines module site.testing.asserts

  defines function

    add() as pure
      ->
        a as Integer
        b as Integer
      <- result as Integer: a + b

    multiply() as pure
      ->
        a as Integer
        b as Integer
      <- result as Integer: a * b

Download testing_asserts.ek9