diff options
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/awk.tests | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index a02302405..50b2a8328 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests @@ -275,10 +275,22 @@ testing "awk large integer" \ "" "" testing "awk length(array)" \ - "awk 'BEGIN{ A[1]=2; A["qwe"]="asd"; print length(A)}'" \ + "awk 'BEGIN{ A[1]=2; A[\"qwe\"]=\"asd\"; print length(A)}'" \ "2\n" \ "" "" +testing "awk -f and ARGC" \ + "awk -f - input" \ + "re\n2\n" \ + "do re mi\n" \ + '{print $2; print ARGC;}' \ + +testing "awk -e and ARGC" \ + "awk -e '{print \$2; print ARGC;}' input" \ + "re\n2\n" \ + "do re mi\n" \ + "" \ + # testing "description" "command" "result" "infile" "stdin" exit $FAILCOUNT |