HCoop
/
jackhill
/
mal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add long running perf test.
[jackhill/mal.git]
/
coffee
/
tests
/
stepA_interop.mal
1
;; Testing basic bash interop
2
3
(js* "7")
4
;=>7
5
6
(js* "'7'")
7
;=>"7"
8
9
(js* "[7,8,9]")
10
;=>(7 8 9)
11
12
(js* "console.log('hello');")
13
; hello
14
;=>nil
15
16
(js* "foo=8;")
17
(js* "foo;")
18
;=>8
19
20
(js* "['a','b','c'].map(function(x){return 'X'+x+'Y'}).join(' ')")
21
;=>"XaY XbY XcY"
22
23
(js* "[1,2,3].map(function(x){return 1+x})")
24
;=>(2 3 4)