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-w32-28b00ce6ff8cde91f3e83632e705709b7cd2ab20.tar.gz busybox-w32-28b00ce6ff8cde91f3e83632e705709b7cd2ab20.tar.bz2 busybox-w32-28b00ce6ff8cde91f3e83632e705709b7cd2ab20.zip |
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)" \ | |||
281 | "2\n" \ | 281 | "2\n" \ |
282 | "" "" | 282 | "" "" |
283 | 283 | ||
284 | testing "awk length()" \ | ||
285 | "awk '{print length; print length(); print length(\"qwe\"); print length(99+9)}'" \ | ||
286 | "3\n3\n3\n3\n" \ | ||
287 | "" "qwe" | ||
288 | |||
284 | testing "awk -f and ARGC" \ | 289 | testing "awk -f and ARGC" \ |
285 | "awk -f - input" \ | 290 | "awk -f - input" \ |
286 | "re\n2\n" \ | 291 | "re\n2\n" \ |