From c484cce5ab1f6acd14ecad30adb586a6d5fa0fd1 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 5 Feb 2022 11:11:13 +0100 Subject: rearrange spec, fix for Lua 5.1 --- spec/lang/thread_spec.moon | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 spec/lang/thread_spec.moon (limited to 'spec/lang/thread_spec.moon') 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 '', 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 '', tostring rt.result -- cgit v1.2.3