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 | |||
@@ -971,25 +971,57 @@ NF: 1 | |||
971 | 0: 12 | 971 | 0: 12 |
972 | TOTAL: 1 | 972 | TOTAL: 1 |
973 | ]) | 973 | ]) |
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 |
981 | 2: three | 983 | 2: three |
982 | 3: four | 984 | 3: four |
983 | 4: five | 985 | 4: five |
984 | TOTAL: 5 | 986 | TOTAL: 5 |
985 | NF: 3 | 987 | NF: 3 |
986 | 0: "one two" | 988 | 0: "one two" |
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]) |
993 | m4_popdef([wspnum]) | 1025 | m4_popdef([wspnum]) |
994 | m4_popdef([wspid]) | 1026 | m4_popdef([wspid]) |
995 | m4_popdef([genkw]) | 1027 | m4_popdef([genkw]) |