nicojensen.de/vendor/bundle/gems/rouge-3.3.0/lib/rouge/demos/pony
Nico Jensen b59a203dbb Init
Init commit
2019-03-12 13:49:49 +01:00

17 lines
342 B
Text

use "ponytest"
actor Main is TestList
new create(env: Env) => PonyTest(env, this)
new make() => None
fun tag tests(test: PonyTest) =>
test(_TestAddition)
class iso _TestAddition is UnitTest
"""
Adding 2 numbers
"""
fun name(): String => "u32/add"
fun apply(h: TestHelper): TestResult =>
h.expect_eq[U32](2 + 2, 4)