diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-16 19:21:57 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-16 19:21:57 +0100 |
commit | a50576a415a9b5d384a28c9bd4b55a4df2974248 (patch) | |
tree | 12db52aea474921a6fb5bc935405309b25e73c88 /testsuite | |
parent | 6d29879c676a636656c7b29ab5be76518346b19c (diff) | |
download | busybox-w32-a50576a415a9b5d384a28c9bd4b55a4df2974248.tar.gz busybox-w32-a50576a415a9b5d384a28c9bd4b55a4df2974248.tar.bz2 busybox-w32-a50576a415a9b5d384a28c9bd4b55a4df2974248.zip |
bc: fold zbc_parse_else() into its only caller
While at it, allow newline between "else" and its body
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/bc.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests index 95cc28dad..36baeea89 100755 --- a/testsuite/bc.tests +++ b/testsuite/bc.tests | |||
@@ -61,6 +61,11 @@ testing "bc if(cond)<NL>" \ | |||
61 | "9\n" \ | 61 | "9\n" \ |
62 | "" "if(0)\n3\n9" | 62 | "" "if(0)\n3\n9" |
63 | 63 | ||
64 | testing "bc if(cond) stmt else<NL>" \ | ||
65 | "bc" \ | ||
66 | "4\n9\n" \ | ||
67 | "" "if(0)3 else\n4\n9" | ||
68 | |||
64 | testing "bc while(cond)<NL>" \ | 69 | testing "bc while(cond)<NL>" \ |
65 | "bc" \ | 70 | "bc" \ |
66 | "8\n7\n6\n5\n4\n3\n2\n1\n9\n" \ | 71 | "8\n7\n6\n5\n4\n3\n2\n1\n9\n" \ |