HCoop
/
clinton
/
parenscript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2bb932
)
Added a few more unit tests related to fixes in previous patches.
author
Vladimir Sedach
<vsedach@gmail.com>
Sat, 6 Dec 2008 07:17:27 +0000
(
00:17
-0700)
committer
Vladimir Sedach
<vsedach@gmail.com>
Sat, 6 Dec 2008 07:17:27 +0000
(
00:17
-0700)
t/ps-tests.lisp
patch
|
blob
|
blame
|
history
diff --git
a/t/ps-tests.lisp
b/t/ps-tests.lisp
index
0439ccb
..
409b2d5
100644
(file)
--- a/
t/ps-tests.lisp
+++ b/
t/ps-tests.lisp
@@
-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")