aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lang/thread_spec.moon
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lang/thread_spec.moon')
-rw-r--r--spec/lang/thread_spec.moon24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/lang/thread_spec.moon b/spec/lang/thread_spec.moon
deleted file mode 100644
index 9e84575..0000000
--- a/spec/lang/thread_spec.moon
+++ /dev/null
@@ -1,24 +0,0 @@
-import TestPilot from require 'spec.test_setup'
-
-describe "thread macros", ->
- COPILOT = TestPilot!
-
- it "thread forward (->)", ->
- rt = COPILOT\eval_once '
- (import* math)
- #((/ (+ 10 2) 2) = 6)
- (-> 10
- (+ 2)
- (/ 2))'
- assert.is.true rt\is_const!
- assert.is.equal '<num= 6.0>', tostring rt.result
-
- it "thread last forward (->>)", ->
- rt = COPILOT\eval_once '
- (import* math)
- #((/ 10 (+ 2 3)) = 2)
- (->> 3
- (+ 2)
- (/ 10))'
- assert.is.true rt\is_const!
- assert.is.equal '<num= 2.0>', tostring rt.result