Skip to content

Commit 08d74fa

Browse files
committed
1 parent 28e14bd commit 08d74fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/tests/units/object-test.r3

+10
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ Rebol [
7373
--assert [] == body-of append/dup make object! [] [a 1] 0
7474
--assert [a: 1] == body-of append/dup make object! [] [a 1] 1
7575
--assert [a: 1] == body-of append/dup make object! [] [a 1] 10
76+
77+
--test-- "bind to object"
78+
;@@ https://github.com/Oldes/Rebol-issues/issues/890
79+
o: make object! [a: 0]
80+
--assert all [error? e: try [bind 's o] e/id = 'not-in-context]
81+
--assert all [
82+
's = bind/new 's o
83+
[a s] = keys-of o
84+
unset? :o/s
85+
]
7686
===end-group===
7787

7888

0 commit comments

Comments
 (0)