aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/testing_spec.moon
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-03-18 11:47:22 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-18 12:06:18 +0000
commitb6cbc69461dc054019f50f8971704f6ef9de63ab (patch)
treed2b8942b780f668ccbe57b52dd8d65f61613e935 /spec/lib/testing_spec.moon
parentbuiltins: switch takes single array as value (diff)
downloadalive-wip.tar.gz
alive-wip.zip
language: [array] and {struct} literalswip
Diffstat (limited to 'spec/lib/testing_spec.moon')
-rw-r--r--spec/lib/testing_spec.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/testing_spec.moon b/spec/lib/testing_spec.moon
index 5be7848..0605c00 100644
--- a/spec/lib/testing_spec.moon
+++ b/spec/lib/testing_spec.moon
@@ -46,7 +46,7 @@ describe "testing", ->
assert.is.true \is_const!
assert.is.nil .result
- with COPILOT\eval_once '(expect= (array 1 2) (array 1 2))'
+ with COPILOT\eval_once '(expect= [1 2] (mkarray 1 2))'
assert.is.true \is_const!
assert.is.nil .result
@@ -58,7 +58,7 @@ describe "testing", ->
assert.has.error -> COPILOT\eval_once '(expect= true false)'
assert.has.error -> COPILOT\eval_once '(expect= "asdf" "bsdf")'
- assert.has.error -> COPILOT\eval_once '(expect= (array 1 2) (array 1 3))'
+ assert.has.error -> COPILOT\eval_once '(expect= [1 2] [1 3])'
it "fails different types", ->
assert.has.error -> COPILOT\eval_once '(expect= true 2)'