Home | History | Annotate | Download | only in unit-tests

Lines Matching defs:WORDS

3 # Tests for the :ts variable modifier, which joins the words of the variable
6 WORDS= one two three four five six
8 # The words are separated by a single space, just as usual.
9 .if ${WORDS:ts } != "one two three four five six"
14 .if ${WORDS:ts,} != "one,two,three,four,five,six"
19 .if ${WORDS:ts/:tu} != "ONE/TWO/THREE/FOUR/FIVE/SIX"
25 .if ${WORDS:ts::tu} != "ONE:TWO:THREE:FOUR:FIVE:SIX"
29 # When there is just a colon but no other character, the words are
32 .if ${WORDS:ts:tu} != "ONETWOTHREEFOURFIVESIX"
38 # split into words. Beware of separating the words using a single or double
44 .if ${WORDS:tu:ts} != "ONETWOTHREEFOURFIVESIX"
51 .if ${WORDS:tu:ts/} != "ONE/TWO/THREE/FOUR/FIVE/SIX"
58 .if ${WORDS:ts:} != "one:two:three:four:five:six"
62 # As in the ${WORDS:tu:ts} example above, the separator is empty.
63 .if ${WORDS:ts} != "onetwothreefourfivesix"
68 .if ${WORDS:ts:S/two/2/} != "one2threefourfivesix"
73 .if ${WORDS:S/two/2/:ts} != "one2threefourfivesix"
79 .if ${WORDS:ts/:S/two/2/} != "one/2/three/four/five/six"
86 .if ${WORDS:ts/:S/^two/2/} != "one/two/three/four/five/six"
98 # afterwards. First, the modifier ':tsx' joins the 3 words, then the modifier
100 # so when the words are joined at the end of the modifier ':S', there is only
109 # newly added spaces are treated as word separators, resulting in 3 words.
110 # When these 3 words are joined, the separator from the modifier ':tsx' is
130 .if ${WORDS:[1..3]:ts\n} != "one${.newline}two${.newline}three"
135 .if ${WORDS:[1..3]:ts\t} != "one two three"
140 .if ${WORDS:[1..3]:ts\012:tu} != "ONE${.newline}TWO${.newline}THREE"
145 .if ${WORDS:[1..2]:ts\000000000000000000000000012:tu} != "ONE${.newline}TWO"
154 .if ${WORDS:[1..3]:ts\400:tu}
161 .if ${WORDS:[1..3]:ts\xa:tu} != "ONE${.newline}TWO${.newline}THREE"
169 .if ${WORDS:[1..3]:ts\x100:tu}
188 .if ${WORDS:[1..3]:ts\-300:tu}
222 .if ${WORDS:tx}
230 .if ${WORDS:ts\X}
239 .if ${WORDS:ts\X} != "anything"