18 lines
342 B
Plaintext
18 lines
342 B
Plaintext
|
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)
|