aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lang/thread_spec.moon
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-02-05 10:11:13 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commitc484cce5ab1f6acd14ecad30adb586a6d5fa0fd1 (patch)
treea45c702a83e150fea5b14b279e5f0cab9b65bc3e /spec/lang/thread_spec.moon
parentexamples: more smoothing in love example :) (diff)
downloadalive-c484cce5ab1f6acd14ecad30adb586a6d5fa0fd1.tar.gz
alive-c484cce5ab1f6acd14ecad30adb586a6d5fa0fd1.zip
rearrange spec, fix for Lua 5.1
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