fix test case for (and)

This commit is contained in:
2022-03-28 19:00:33 -06:00
parent c8d42e5258
commit 2a0b08126e
2 changed files with 5 additions and 6 deletions

View File

@@ -168,9 +168,7 @@ class BasicTestCase extends Test {
}
function testAnd() {
Assert.equals(6, BasicTestCase.myAnd1);
Assert.equals(null, BasicTestCase.myAnd2);
Assert.equals(null, BasicTestCase.myAnd3);
_testAnd();
}
function testNot() {

View File

@@ -182,9 +182,10 @@
(Assert.equals (.toString []) (.toString (or null [])))
(Assert.equals "" (or null [] "")))
(var myAnd1 (and 5 6))
(var myAnd2 (and false 5 6))
(var myAnd3 (and 5 false 6))
(function _testAnd []
(Assert.equals 6 (and 5 6))
(Assert.isFalse ?(and false 5 6))
(Assert.isFalse ?(and 5 false 6)))
(function mySetLocal []
(localVar &mut loc "one thing")