diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-02 02:41:39 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-02 02:41:39 +0200 |
commit | 28b00ce6ff8cde91f3e83632e705709b7cd2ab20 (patch) | |
tree | a87a9077c2a26813f87d3403c60296d7c12d6c77 /testsuite | |
parent | c919d561adaf152d9b8834475539e2366c8aa484 (diff) | |
download | busybox-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-x | testsuite/awk.tests | 5 |
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" \ |