From 8b0ff802dbf2a45c9c1ce6d026bb1a646e709adf Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 27 Jan 2022 16:35:18 +0100 Subject: clean up spec a bit --- spec/lang/thread_spec.moon | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'spec/lang/thread_spec.moon') diff --git a/spec/lang/thread_spec.moon b/spec/lang/thread_spec.moon index aa30a1b..9e84575 100644 --- a/spec/lang/thread_spec.moon +++ b/spec/lang/thread_spec.moon @@ -1,8 +1,7 @@ import TestPilot from require 'spec.test_setup' -import T, Struct, Array, Constant from require 'alv' describe "thread macros", -> - COPILOT = TestPilot '' + COPILOT = TestPilot! it "thread forward (->)", -> rt = COPILOT\eval_once ' @@ -12,7 +11,7 @@ describe "thread macros", -> (+ 2) (/ 2))' assert.is.true rt\is_const! - assert.is.equal (Constant.num 6), rt.result + assert.is.equal '', tostring rt.result it "thread last forward (->>)", -> rt = COPILOT\eval_once ' @@ -22,4 +21,4 @@ describe "thread macros", -> (+ 2) (/ 10))' assert.is.true rt\is_const! - assert.is.equal (Constant.num 2), rt.result + assert.is.equal '', tostring rt.result -- cgit v1.2.3