diff options
Diffstat (limited to 'tests/wordsplit.at')
-rw-r--r-- | tests/wordsplit.at | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/tests/wordsplit.at b/tests/wordsplit.at index 0a9c4d6..0a7d7db 100644 --- a/tests/wordsplit.at +++ b/tests/wordsplit.at | |||
@@ -976,3 +976,5 @@ TESTWSP([$* and $@],[],['one two' three 'four five'], | |||
976 | [$* | 976 | [$* |
977 | $@], | 977 | $@ |
978 | "$*" | ||
979 | "$@"], | ||
978 | [NF: 5 | 980 | [NF: 5 |
@@ -989,2 +991,32 @@ NF: 3 | |||
989 | TOTAL: 3 | 991 | TOTAL: 3 |
992 | NF: 1 | ||
993 | 0: "one two three four five" | ||
994 | TOTAL: 1 | ||
995 | NF: 1 | ||
996 | 0: "one two three four five" | ||
997 | TOTAL: 1 | ||
998 | ]) | ||
999 | |||
1000 | TESTWSP([$* and $@ in nosplit mode],[], | ||
1001 | [-trimnl -nosplit 'one two' three 'four five'], | ||
1002 | [$* | ||
1003 | $@], | ||
1004 | [NF: 1 | ||
1005 | 0: "one two three four five" | ||
1006 | TOTAL: 1 | ||
1007 | NF: 1 | ||
1008 | 0: "one two three four five" | ||
1009 | TOTAL: 1 | ||
1010 | ]) | ||
1011 | |||
1012 | TESTWSP([$* and $@ in nosplit mode with delimiter],[], | ||
1013 | [-trimnl -nosplit -delim : 'one two' three 'four five'], | ||
1014 | [$* | ||
1015 | $@], | ||
1016 | [NF: 1 | ||
1017 | 0: "one two:three:four five" | ||
1018 | TOTAL: 1 | ||
1019 | NF: 1 | ||
1020 | 0: "one two:three:four five" | ||
1021 | TOTAL: 1 | ||
990 | ]) | 1022 | ]) |