Fix truthy() for objects, make empty lists falsy

This commit is contained in:
2020-11-23 07:05:27 -07:00
parent ccd683ccc3
commit 9445ffd435
3 changed files with 13 additions and 3 deletions

View File

@@ -117,6 +117,8 @@ class BasicTestCase extends Test {
Assert.equals(false, BasicTestCase.myIf6);
Assert.equals(true, BasicTestCase.myIf7);
Assert.equals(false, BasicTestCase.myIf8);
Assert.equals(false, BasicTestCase.myIf9);
Assert.equals(true, BasicTestCase.myIf10);
}
function testMacros() {