From 891c3f3b478292ad0bfca44b0dc098a2aecc9a5d Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 8 Nov 2014 16:56:36 -0600 Subject: CoffeeScript: add all steps. Self-hosting. --- coffee/tests/stepA_interop.mal | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 coffee/tests/stepA_interop.mal (limited to 'coffee/tests') diff --git a/coffee/tests/stepA_interop.mal b/coffee/tests/stepA_interop.mal new file mode 100644 index 0000000..f785292 --- /dev/null +++ b/coffee/tests/stepA_interop.mal @@ -0,0 +1,24 @@ +;; 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) -- cgit v1.2.3