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