Test code: the output is the assertion
The complete source of testing_blackbox_tests.ek9, compiled by the EK9 compiler. Shown on testing.html.
#!ek9 defines module site.testing.blackbox.tests references site.testing.blackbox::greet defines program @Test GreetingOutputTest() stdout <- Stdout() stdout.println(greet("World")) stdout.println(greet("EK9"))
Download testing_blackbox_tests.ek9
Output
GreetingOutputTest
Hello, World! Hello, EK9!