diff options
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-x | testsuite/awk.tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 87f6b5007..06a531d96 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -398,5 +398,12 @@ testing 'awk do not allow "str"++' \ | |||
398 | '' \ | 398 | '' \ |
399 | 'anything' | 399 | 'anything' |
400 | 400 | ||
401 | #gawk compat: FS regex matches only non-empty separators: | ||
402 | #with -*, the splitting is NOT f o o b a r, but foo bar: | ||
403 | testing 'awk FS regex which can match empty string' \ | ||
404 | "awk -F '-*' '{print \$1 \"-\" \$2 \"=\" \$3 \"*\" \$4}'" \ | ||
405 | "foo-bar=*\n" \ | ||
406 | '' \ | ||
407 | 'foo--bar' | ||
401 | 408 | ||
402 | exit $FAILCOUNT | 409 | exit $FAILCOUNT |