rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/pony
2019-10-21 10:18:17 +02:00

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)