1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 18:18:51 +03:00
mal/js/tests/stepA_mal.mal
Joel Martin 90f618cbe7 All: rename stepA_interop to stepA_mal
Also, add missed postscript interop tests.
2015-02-28 11:09:54 -06:00

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)