diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-10-12 04:51:54 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-10-12 04:51:54 +0200 |
commit | 7985bc109e0d738644094f391d08d9848a2f2b50 (patch) | |
tree | 7bc6aa3e04ebd86bbd8516bffe9e3c8b894534b9 /testsuite | |
parent | 1d30b3f1f66a0cd179f47082245079ef357b6a66 (diff) | |
download | busybox-w32-7985bc109e0d738644094f391d08d9848a2f2b50.tar.gz busybox-w32-7985bc109e0d738644094f391d08d9848a2f2b50.tar.bz2 busybox-w32-7985bc109e0d738644094f391d08d9848a2f2b50.zip |
awk: fix length(array)
function old new delta
evaluate 3526 3548 +22
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/awk.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 6af6072b8..a02302405 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -274,6 +274,11 @@ testing "awk large integer" \ | |||
274 | "2147483647 2147483647 0 2147483648 2147483648 0\n" \ | 274 | "2147483647 2147483647 0 2147483648 2147483648 0\n" \ |
275 | "" "" | 275 | "" "" |
276 | 276 | ||
277 | testing "awk length(array)" \ | ||
278 | "awk 'BEGIN{ A[1]=2; A["qwe"]="asd"; print length(A)}'" \ | ||
279 | "2\n" \ | ||
280 | "" "" | ||
281 | |||
277 | # testing "description" "command" "result" "infile" "stdin" | 282 | # testing "description" "command" "result" "infile" "stdin" |
278 | 283 | ||
279 | exit $FAILCOUNT | 284 | exit $FAILCOUNT |