blob: 9b584fd385c87693eb207a49845435959fa55c2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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)
|