File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,28 @@ Rebol [
15
15
--assert 1 = m/a
16
16
--assert not empty? m
17
17
--assert empty? clear m
18
+
19
+ ;@@ https://github.com/rebol/rebol-issues/issues/598
20
+ --test-- "map-issue-598"
21
+ --assert error? try [make map! [[a] 1 ]]
22
+
23
+ ===end-group===
24
+
25
+ ===start-group=== "reflection"
26
+ m: make map! b: [a 1 b: 2 :c 3 'd 4 #e 5 /f 6 "a" 7 <b > 8 9 9 #"c" 10 a@b 11 ]
27
+ --test-- "body of map"
28
+ --assert [a 1 b: 2 :c 3 'd 4 #e 5 /f 6 "a" 7 <b > 8 9 9 #"c" 10 a@b 11 ] = b
29
+ --assert [a: 1 b: 2 c: 3 d: 4 e: 5 f: 6 "a" 7 <b > 8 9 9 #"c" 10 a@b 11 ] = body-of m
30
+ --assert [a: 1 b: 2 c: 3 d: 4 e: 5 f: 6 "a" 7 <b > 8 9 9 #"c" 10 a@b 11 ] = reflect m 'body
31
+
32
+ --test-- "values of map"
33
+ --assert [1 2 3 4 5 6 7 8 9 10 11 ] = values-of m
34
+ --assert [1 2 3 4 5 6 7 8 9 10 11 ] = reflect m 'values
35
+
36
+ --test-- "words of map"
37
+ --assert [a b c d e f "a" <b > 9 #"c" a@b ] = words-of m
38
+ --assert [a b c d e f "a" <b > 9 #"c" a@b ] = reflect m 'words
39
+
18
40
===end-group===
19
41
20
42
~~~end-file~~~
You can’t perform that action at this time.
0 commit comments