-
Notifications
You must be signed in to change notification settings - Fork 220
Language Haxe
kazk edited this page May 5, 2020
·
7 revisions
Beta
4.0
src/Example.hx
class Example {
public static function add(a:Int, b:Int):Int {
return a + b;
}
}
tests/ExampleTest.hx
import utest.Assert;
class ExampleTest extends utest.Test {
function testExample() {
Assert.equals(Example.add(1, 1), 2);
}
}
The optional preloaded code is a separate module that you can import.
12 seconds
None
None