UNDO: Added functions to set up and tear down a persistent compilation environment.
[clinton/parenscript.git] / t / ps-tests.lisp
index 4150f12..d811cfa 100644 (file)
@@ -212,3 +212,28 @@ x = 2 + sideEffect() + x + 5;")
   (slot-value (if (not zoo) foo bar) 'x)
   "(!zoo ? foo : bar).x")
 
+(test script-star-eval1
+  (is (string= "x = 1; y = 2;" (normalize-js-code (let ((*enable-package-system* nil)) (script* '(setf x 1) '(setf y 2)))))))
+
+(test script-star-eval2
+  (is (string= "x = 1;" (normalize-js-code (let ((*enable-package-system* nil)) (script* '(setf x 1)))))))
+
+(test-ps-js slot-value-null1
+  (slot-value foo nil)
+  "foo")
+
+(test-ps-js slot-value-null2
+  (slot-value foo 'nil)
+  "foo")
+
+(test-ps-js unquoted-nil
+  nil
+  "null")
+
+(test-ps-js list-with-single-nil
+  (array 'nil)
+  "[null]")
+
+(test-ps-js quoted-nil
+  'nil
+  "null")
\ No newline at end of file