Skip to content

Commit 1a6bbce

Browse files
committed
TEST: append on protected object
1 parent 15f6ea5 commit 1a6bbce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tests/units/object-test.r3

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ Rebol [
5151
--assert o/x = 1
5252
--assert o/y = 2
5353

54+
--test-- "append on protected object"
55+
o: object [a: 1]
56+
protect o
57+
--assert error? err: try [append o [a: 2]]
58+
--assert err/id = 'protected
59+
unprotect o
60+
5461
===end-group===
5562

5663
~~~end-file~~~

0 commit comments

Comments
 (0)