Test that unops work

This commit is contained in:
2020-11-14 15:29:44 -07:00
parent 27db700268
commit 3e074776d6
2 changed files with 8 additions and 1 deletions

View File

@@ -70,4 +70,8 @@ class BasicTestCase extends Test {
function testPow() {
Assert.equals(256, BasicTestCase.myPower);
}
function testUnop() {
Assert.equals(7, BasicTestCase.myInc);
}
}

View File

@@ -35,4 +35,7 @@
(defvar myRemainder (% 10 6))
(defvar myPower (^ 2 8))
(defvar myPower (^ 2 8))
(defvar _myNum 6)
(defvar myInc ++_myNum)