@@ -224,6 +224,25 @@ Rebol [
224
224
]
225
225
===end-group===
226
226
227
+ ===start-group=== "SET-PATH"
228
+ --test-- "set-path missing value"
229
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2312
230
+ data: copy [a 10 b 20 ]
231
+ data/a: 30
232
+ --assert data = [a 30 b 20 ] ; this one is ok
233
+ ; but rest are errors by design
234
+ --assert all [
235
+ error? e: try [data/c: 30 ]
236
+ e/id: 'invalid-path
237
+ ]
238
+ --assert all [
239
+ data: [1 c]
240
+ error? e: try [data/c: 30 ]
241
+ e/id: 'invalid-path
242
+ ]
243
+ ===end-group===
244
+
245
+
227
246
===start-group=== "CHANGE string!"
228
247
--test-- "change/part"
229
248
;@@ https://github.com/Oldes/Rebol-issues/issues/55
@@ -695,6 +714,26 @@ Rebol [
695
714
remove/part b to integer! #{ 8000 }
696
715
--assert 7232 = length? b
697
716
717
+ --test-- "remove/key any-block!"
718
+ ;@@ https://github.com/Oldes/Rebol-wishes/issues/20
719
+ b: [a b b c]
720
+ --assert [a b b c] = remove/key b 'c ; no change, c is value, not a key
721
+ --assert [a b b c] = remove/key b 'B ; no change, B is not b
722
+ --assert [a b ] = remove/key b 'b
723
+ b: quote (a b b c)
724
+ --assert quote (a b b c) = remove/key b 'c ; no change, c is value, not a key
725
+ --assert quote (a b b c) = remove/key b 'B ; no change, B is not b
726
+ --assert quote (a b ) = remove/key b 'b
727
+ b: 'a/b/b/c
728
+ --assert 'a/b/b/c = remove/key b 'c ; no change, c is value, not a key
729
+ --assert 'a/b/b/c = remove/key b 'B ; no change, B is not b
730
+ --assert 'a/b = remove/key b 'b
731
+ --test-- "remove/key string!"
732
+ --assert all [
733
+ error? e: try [remove/key "abcd" #"a" ]
734
+ e/id = 'feature-na
735
+ ]
736
+
698
737
===end-group===
699
738
700
739
===start-group=== "SORT"
0 commit comments