aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-08-20 12:13:45 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commit2fe2873a4efa6501b3cb5bbd69497d630850da28 (patch)
tree8819548e69f211a4a19dd2921e3d6180fe727ca2 /spec
parentimplement (set) as per spec (diff)
downloadalive-2fe2873a4efa6501b3cb5bbd69497d630850da28.tar.gz
alive-2fe2873a4efa6501b3cb5bbd69497d630850da28.zip
dirty (insert) implementation
Diffstat (limited to 'spec')
-rw-r--r--spec/lang/array_spec.moon2
-rw-r--r--spec/lang/struct_spec.moon2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lang/array_spec.moon b/spec/lang/array_spec.moon
index 25c0167..2dd2894 100644
--- a/spec/lang/array_spec.moon
+++ b/spec/lang/array_spec.moon
@@ -83,7 +83,7 @@ describe "array", ->
assert.is.true rt\is_const!
assert.is.equal svec3\mk_const({ 'a', 'b', 'c' }), rt.result
- rt = COPILOT\eval_once '(insert (array "a" "b") 1 "c")'
+ rt = COPILOT\eval_once '(insert (array "a" "b") 2 "c")'
assert.is.true rt\is_const!
assert.is.equal svec3\mk_const({ 'a', 'b', 'c' }), rt.result
diff --git a/spec/lang/struct_spec.moon b/spec/lang/struct_spec.moon
index aa7b689..9d2286e 100644
--- a/spec/lang/struct_spec.moon
+++ b/spec/lang/struct_spec.moon
@@ -38,7 +38,7 @@ describe "struct", ->
it "doesn't clobber existing members", ->
err = assert.has.error -> COPILOT\eval_once '(insert (struct "a" 1) "a" 2)'
- assert.matches "TBD", err
+ assert.matches "key 'a' already exists in value of type {a: num}", err
describe "(remove)", ->
it "can remove members", ->