Fixed hexpression example

This commit is contained in:
2019-03-17 19:45:42 -06:00
parent caf2f82b55
commit c57dcdc539
8 changed files with 76 additions and 22 deletions

View File

@@ -4,13 +4,14 @@ import utest.Test;
import utest.Assert;
import hank.HInterface;
import hank.ViewCounts;
class HInterfaceTest extends utest.Test {
var hInterface: HInterface;
public function setup() {
hInterface = new HInterface();
hInterface = new HInterface(new ViewCounts([]));
}
function assertVar(name: String, value: Dynamic) {
@@ -20,6 +21,8 @@ class HInterfaceTest extends utest.Test {
public function testVarDeclaration() {
hInterface.runEmbeddedHaxe('var test = "str"');
assertVar('test', 'str');
hInterface.runEmbeddedHaxe('var test2 = 2');
assertVar('test2', 2);
}
public function testBoolification() {