This commit is contained in:
2020-11-15 12:47:06 -07:00
parent 8b7c018a4d
commit 5a77d393be
6 changed files with 94 additions and 11 deletions

View File

@@ -118,4 +118,13 @@ class BasicTestCase extends Test {
Assert.equals(true, BasicTestCase.myIf7);
Assert.equals(false, BasicTestCase.myIf8);
}
function testMacros() {
Assert.equals(7, BasicTestCase.incrementTwice(5));
var seasonsGreetings = "ho ";
Assert.equals("ho ho ho ", BasicTestCase.doTwiceString(() -> {
seasonsGreetings += "ho ";
}));
}
}