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 | |||
@@ -974,7 +974,9 @@ TOTAL: 1 | |||
974 | 974 | ||
975 | TESTWSP([$* and $@],[],['one two' three 'four five'], | 975 | TESTWSP([$* and $@],[],['one two' three 'four five'], |
976 | [$* | 976 | [$* |
977 | $@], | 977 | $@ |
978 | "$*" | ||
979 | "$@"], | ||
978 | [NF: 5 | 980 | [NF: 5 |
979 | 0: one | 981 | 0: one |
980 | 1: two | 982 | 1: two |
@@ -987,6 +989,36 @@ NF: 3 | |||
987 | 1: three | 989 | 1: three |
988 | 2: "four five" | 990 | 2: "four five" |
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 | ]) |
991 | 1023 | ||
992 | m4_popdef([TESTWSP]) | 1024 | m4_popdef([TESTWSP]) |