Skip to content

Commit c1a2fb5

Browse files
committed
1 parent 3b93faa commit c1a2fb5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/tests/units/func-test.r3

+17
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,23 @@ Rebol [
190190
===end-group===
191191

192192

193+
===start-group=== "COLLECT-WORDS"
194+
;@@ https://github.com/Oldes/Rebol-issues/issues/544
195+
blk: [a "b" c: 2 [:d e:]]
196+
--test-- "collect-words"
197+
--assert [a c] = collect-words blk
198+
--test-- "collect-words/deep"
199+
--assert [a c d e] = collect-words/deep blk
200+
--test-- "collect-words/set"
201+
--assert [c] = collect-words/set blk
202+
--assert [c e] = collect-words/set/deep blk
203+
--test-- "collect-words/ignore"
204+
--assert [a c] = collect-words/ignore blk none
205+
--assert [a] = collect-words/ignore blk [c]
206+
--assert [c] = collect-words/ignore blk object [a: 1]
207+
===end-group===
208+
209+
193210
===start-group=== "Other issues"
194211

195212
--test-- "issue-2025"

0 commit comments

Comments
 (0)