BasicTestCase
This commit is contained in:
23
src/test/cases/BasicTestCase.hx
Normal file
23
src/test/cases/BasicTestCase.hx
Normal file
@@ -0,0 +1,23 @@
|
||||
package test.cases;
|
||||
|
||||
import utest.Test;
|
||||
import utest.Assert;
|
||||
|
||||
@:build(kiss.Kiss.build("src/test/cases/BasicTestCase.kiss"))
|
||||
class BasicTestCase extends Test {
|
||||
function testStaticVar() {
|
||||
Assert.equals("Howdy", BasicTestCase.message);
|
||||
}
|
||||
|
||||
function testHaxeInsertion() {
|
||||
Assert.equals(23, BasicTestCase.mathResult);
|
||||
}
|
||||
|
||||
function testStaticFunction() {
|
||||
Assert.equals(6, BasicTestCase.myFloor(6.5));
|
||||
}
|
||||
|
||||
function testFuncall() {
|
||||
Assert.equals(7, BasicTestCase.funResult);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user