We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e14bd commit 08d74faCopy full SHA for 08d74fa
src/tests/units/object-test.r3
@@ -73,6 +73,16 @@ Rebol [
73
--assert [] == body-of append/dup make object! [] [a 1] 0
74
--assert [a: 1] == body-of append/dup make object! [] [a 1] 1
75
--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
+ ]
86
===end-group===
87
88
0 commit comments