Skip to content

Commit

Permalink
add failing test #285
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 22, 2024
1 parent 3ab054e commit 4559b44
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/core.scm
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,19 @@
(random 1000)
(t.is (shuffle #(1 2 3 4)) #(2 4 3 1))))

(test.failing "core: immutable strings"
(lambda (t)
(t.is (to.throw
(let* ((x "hello")
(f (lambda () x)))
(string-set! (f) 0 #\x)))
true)
(t.is (to.throw
(let* ((x (string-symbol 'immutable))
(f (lambda () x)))
(string-set! (f) 0 #\x)))
true)))

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

0 comments on commit 4559b44

Please sign in to comment.