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/struct_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/struct_spec.moon')
| -rw-r--r-- | spec/lang/struct_spec.moon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lang/struct_spec.moon b/spec/lang/struct_spec.moon index 6a6e0fa..9937f99 100644 --- a/spec/lang/struct_spec.moon +++ b/spec/lang/struct_spec.moon @@ -1,5 +1,5 @@ import TestPilot from require 'spec.test_setup' -import T, Struct, Constant from require 'alv' +import T, Struct from require 'alv' describe "struct", -> test = TestPilot '', '(import* struct-)\n' @@ -24,7 +24,7 @@ describe "struct", -> it "can get values", -> rt = COPILOT\eval_once '(get (struct "a" 1 "b" false) "a")' assert.is.true rt\is_const! - assert.is.equal (Constant.num 1), rt.result + assert.is.equal '<num= 1>', tostring rt.result it "checks keys", -> err = assert.has.error -> COPILOT\eval_once '(get (struct "a" 1) "b")' |
