aboutsummaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 9e5e5a0f1..56b11ca46 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -24,6 +24,12 @@ testing "awk hex const 2" "awk '{ print or(0x80000000,1) }'" "2.14748e+09\n" ""
24testing "awk oct const" "awk '{ print or(01234,1) }'" "669\n" "" "\n" 24testing "awk oct const" "awk '{ print or(01234,1) }'" "669\n" "" "\n"
25SKIP= 25SKIP=
26 26
27# check that "hex/oct integer" heuristic doesn't kick in on 00NN.NNN
28testing "awk floating const with leading zeroes" \
29 "awk '{ printf \"%f %f\n\", \"000.123\", \"009.123\" }'" \
30 "0.123000 9.123000\n" \
31 "" "\n"
32
27# long field seps requiring regex 33# long field seps requiring regex
28testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \ 34testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \
29 "2 0 \n3 0 \n4 0 \n5 0 \n" \ 35 "2 0 \n3 0 \n4 0 \n5 0 \n" \