aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-02 02:41:39 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-02 02:41:39 +0200
commit28b00ce6ff8cde91f3e83632e705709b7cd2ab20 (patch)
treea87a9077c2a26813f87d3403c60296d7c12d6c77 /testsuite
parentc919d561adaf152d9b8834475539e2366c8aa484 (diff)
downloadbusybox-28b00ce6ff8cde91f3e83632e705709b7cd2ab20.tar.gz
awk: support "length" form of "length()". Closes 8371
function old new delta parse_expr 805 848 +43 tokenlist 447 448 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 9e6952ffd..adab4ae1e 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -281,6 +281,11 @@ testing "awk length(array)" \
"2\n" \
"" ""
+testing "awk length()" \
+ "awk '{print length; print length(); print length(\"qwe\"); print length(99+9)}'" \
+ "3\n3\n3\n3\n" \
+ "" "qwe"
+
testing "awk -f and ARGC" \
"awk -f - input" \
"re\n2\n" \