This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use "ponytest" | |
| actor Main is TestList | |
| new create(env : Env) => PonyTest(env, this) | |
| new make() => None | |
| fun tag tests (test : PonyTest) => | |
| //activating the Yeppp library | |
| let status = @yepLibrary_Init[None]() | |
| test(_Polyval) | |
| class iso _Polyval is UnitTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| primitive Handlers | |
| fun handler_F64 (env:Env) => | |
| env.out.print("handler_F64 is called") | |
| fun handler_F32 (env:Env) => | |
| env.out.print("handler_F32 is called") | |
| fun else_handler(env:Env) => | |
| env.out.print("else_handler is called") | |
| fun dispatch(x: (F64|F32|U64), env:Env)=> |
NewerOlder