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

Lines Matching defs:WORDS

3 # Tests for the ':M' modifier, which keeps only those words that match the
38 # '*' matches 0 or more characters. The whole pattern matches all words that
88 # Only keep words that start with an uppercase letter.
93 # Only keep words that start with a character other than an uppercase letter.
142 # Without the 'b' in the below words, the backslash would end a word and thus
143 # influence how the string is split into words.
144 WORDS= a\b a[\]b ab a\\b
145 .if ${WORDS:Ma[\]b} != "a\\b"
153 WORDS= [ ] [] \] ]]
154 .if ${WORDS:M[[-]]} != "[] \\] ]]"
161 WORDS= [a \a ]a []a \]a ]]a [a] \a] ]a] ba]
162 .if ${WORDS:M[b[-]a]} != "[a] \\a] ]a] ba]"
169 WORDS= - -]
170 .if ${WORDS:M[-]} != "-"
174 # Only keep words that don't start with s and at the same time end with
263 # Without the modifier ':tW', the string is split into words. Whitespace
264 # around the words is discarded, and whitespace between the words is
291 WORDS= a a[
293 .if ${WORDS:Ma[} != ""
299 WORDS= a a[ aX
301 .if ${WORDS:Ma[^} != "a[ aX"
307 WORDS= - + x xx 0 1 2 3 4 [x1-3
309 .if ${WORDS:M[-x1-3} != "- x 1 2 3"
314 # words that end with one of the characters from the list.
315 WORDS= - + x xx 0 1 2 3 4 00 01 10 11 000 001 010 011 100 101 110 111 [x1-3
317 .if ${WORDS:M*[-x1-3} != "- x xx 1 2 3 01 11 001 011 101 111 [x1-3"
318 . warning ${WORDS:M*[-x1-3}
324 WORDS= - + x xx 0 1 2 3 4 [x1-3
326 .if ${WORDS:M[^-x1-3} != "+ 0 4"
337 WORDS= \\ \a ${:Ux\\}
340 .if ${WORDS:M${PATTERN}} != "\\\\ x\\"
346 WORDS= [x- x x- y
348 .if ${WORDS:M[x-} != "x"
358 WORDS= [x- x x- y yyyyy
360 .if ${WORDS:M[^x-} != "[x- y yyyyy"