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/struct_spec.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/lang/struct_spec.moon') 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 '', tostring rt.result it "checks keys", -> err = assert.has.error -> COPILOT\eval_once '(get (struct "a" 1) "b")' -- cgit v1.2.3