Skip to content

Commit

Permalink
add failing test for append! #311
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 12, 2024
1 parent a4c3373 commit d831d33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/core.scm
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,15 @@
(t.is (iterator->array (gen 100 1 2 3 4 5))
#(1 2 3 4 5))))

(test.failing "core: append!"
(lambda (t)
(let ((x ()))
(append! x (list 10) (list 20))
(t.is x '(10 20)))
(let ((x '(1 2)))
(append! x (list 3 4))
(t.is x '(1 2 3 4)))))

;; TODO
;; begin*
;; set-obj! throws with null or boolean
Expand Down

0 comments on commit d831d33

Please sign in to comment.