20 lines
477 B
Haxe
20 lines
477 B
Haxe
package test.cases;
|
|
|
|
import utest.Test;
|
|
import utest.Assert;
|
|
import kiss.EmbeddedScript;
|
|
import kiss.Prelude;
|
|
|
|
class DSLTestCase extends Test {
|
|
function testScript() {
|
|
new DSLScript().run();
|
|
}
|
|
|
|
function testFork() {
|
|
new DSLScript().fork([() -> Assert.equals(5, 5), () -> Assert.equals(7, 7)]);
|
|
}
|
|
}
|
|
|
|
@:build(kiss.EmbeddedScript.build("kiss/src/test/cases/DSL.kiss", "kiss/src/test/cases/DSLScript.dsl"))
|
|
class DSLScript extends EmbeddedScript {}
|