Added a few more unit tests related to fixes in previous patches.
authorVladimir Sedach <vsedach@gmail.com>
Sat, 6 Dec 2008 07:17:27 +0000 (00:17 -0700)
committerVladimir Sedach <vsedach@gmail.com>
Sat, 6 Dec 2008 07:17:27 +0000 (00:17 -0700)
t/ps-tests.lisp

index 0439ccb..409b2d5 100644 (file)
@@ -617,3 +617,15 @@ try {
 (test-ps-js named-op-expression1
   (typeof (or x y))
   "typeof (x || y)")
+
+(test-ps-js aref-array-expression
+  (aref (or a b c) 0)
+  "(a || b || c)[0]")
+
+(test-ps-js slot-value-operator
+  (slot-value (or a b c) 'd)
+  "(a || b || c).d")
+
+(test-ps-js slot-value-parens
+  (slot-value (slot-value foo 'bar) 'baz)
+  "foo.bar.baz")