Test that unops work
This commit is contained in:
@@ -70,4 +70,8 @@ class BasicTestCase extends Test {
|
||||
function testPow() {
|
||||
Assert.equals(256, BasicTestCase.myPower);
|
||||
}
|
||||
|
||||
function testUnop() {
|
||||
Assert.equals(7, BasicTestCase.myInc);
|
||||
}
|
||||
}
|
||||
|
@@ -35,4 +35,7 @@
|
||||
|
||||
(defvar myRemainder (% 10 6))
|
||||
|
||||
(defvar myPower (^ 2 8))
|
||||
(defvar myPower (^ 2 8))
|
||||
|
||||
(defvar _myNum 6)
|
||||
(defvar myInc ++_myNum)
|
Reference in New Issue
Block a user