Skip to content

Commit 2c2ad20

Browse files
committed
1 parent 127a5a8 commit 2c2ad20

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/tests/units/map-test.r3

+16
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ Rebol [
6363

6464
===end-group===
6565

66+
===start-group=== "APPEND on map!"
67+
--test-- "appen on map with /part and /dup"
68+
;@@ https://github.com/Oldes/Rebol-issues/issues/1158
69+
m: make map! [a 1]
70+
--assert 1 = length? m
71+
--assert 1 = length? append/part m [b 2] 0
72+
--assert 2 = length? append/part m [b 2] 2
73+
--assert 2 = length? append/dup m [c 3] 0
74+
--assert 3 = length? append/dup m [c 3] 1
75+
--assert 4 = length? append/dup m [d 4] 2
76+
--assert 5 = length? append/part m [e 5 f 6] 1
77+
--assert [1 2 3 4 5] = values-of m
78+
79+
===end-group===
80+
81+
6682
===start-group=== "map issues"
6783
;@@ https://github.com/rebol/rebol-issues/issues/770
6884
--test-- "map-issue-770"

0 commit comments

Comments
 (0)