rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/pony

18 lines
342 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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)