mirror of
https://github.com/kanaka/mal.git
synced 2024-09-20 18:18:51 +03:00
90f618cbe7
Also, add missed postscript interop tests.
25 lines
316 B
Plaintext
25 lines
316 B
Plaintext
;; Testing basic bash interop
|
|
|
|
(js* "7")
|
|
;=>7
|
|
|
|
(js* "'7'")
|
|
;=>"7"
|
|
|
|
(js* "[7,8,9]")
|
|
;=>(7 8 9)
|
|
|
|
(js* "console.log('hello');")
|
|
; hello
|
|
;=>nil
|
|
|
|
(js* "foo=8;")
|
|
(js* "foo;")
|
|
;=>8
|
|
|
|
(js* "['a','b','c'].map(function(x){return 'X'+x+'Y'}).join(' ')")
|
|
;=>"XaY XbY XcY"
|
|
|
|
(js* "[1,2,3].map(function(x){return 1+x})")
|
|
;=>(2 3 4)
|