diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-01-27 15:35:18 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | 8b0ff802dbf2a45c9c1ce6d026bb1a646e709adf (patch) | |
| tree | 4945ceca327086ea96ad9b5b10e409b7c6d63aa7 /spec/lang/thread_spec.moon | |
| parent | use base.match.any consistently (diff) | |
| download | alive-8b0ff802dbf2a45c9c1ce6d026bb1a646e709adf.tar.gz alive-8b0ff802dbf2a45c9c1ce6d026bb1a646e709adf.zip | |
clean up spec a bit
Diffstat (limited to 'spec/lang/thread_spec.moon')
| -rw-r--r-- | spec/lang/thread_spec.moon | 7 |
1 files changed, 3 insertions, 4 deletions
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 '<num= 6.0>', 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 '<num= 2.0>', tostring rt.result |
