HCoop
/
clinton
/
parenscript.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a couple of test cases for object literals.
[clinton/parenscript.git]
/
t
/
ps-tests.lisp
diff --git
a/t/ps-tests.lisp
b/t/ps-tests.lisp
index
0e3b858
..
e4a1dac
100644
(file)
--- a/
t/ps-tests.lisp
+++ b/
t/ps-tests.lisp
@@
-306,6
+306,14
@@
x = 2 + sideEffect() + x + 5;")
{}
"{ }")
{}
"{ }")
+(test-ps-js object-literal-1
+ ({})
+ "{ }")
+
+(test-ps-js object-literal-2
+ ({} a 1 b 2)
+ "{a: 1, b: 2 }")
+
(test-ps-js defun-rest1
(defun foo (&rest bar) (alert bar[1]))
"function foo() {
(test-ps-js defun-rest1
(defun foo (&rest bar) (alert bar[1]))
"function foo() {