awk: fix length(array)

function                                             old     new   delta
evaluate                                            3526    3548     +22

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-10-12 04:51:54 +02:00
parent 1d30b3f1f6
commit 7985bc109e
2 changed files with 14 additions and 1 deletions

View File

@@ -274,6 +274,11 @@ testing "awk large integer" \
"2147483647 2147483647 0 2147483648 2147483648 0\n" \
"" ""
testing "awk length(array)" \
"awk 'BEGIN{ A[1]=2; A["qwe"]="asd"; print length(A)}'" \
"2\n" \
"" ""
# testing "description" "command" "result" "infile" "stdin"
exit $FAILCOUNT