diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-13 17:23:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-13 17:43:23 +0100 |
commit | 766f67250f01dc5458093c31ec0d2ec09cad65a2 (patch) | |
tree | 0203b6b381d35d5784acf8bb9eccf07dc5958396 /testsuite | |
parent | 7dc0a51286b7898fcc17033dce1f1856e78494b4 (diff) | |
download | busybox-w32-766f67250f01dc5458093c31ec0d2ec09cad65a2.tar.gz busybox-w32-766f67250f01dc5458093c31ec0d2ec09cad65a2.tar.bz2 busybox-w32-766f67250f01dc5458093c31ec0d2ec09cad65a2.zip |
bc: fix comment handling
function old new delta
bc_vm_run 514 513 -1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/bc.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests index 32460092b..4f0d50f73 100755 --- a/testsuite/bc.tests +++ b/testsuite/bc.tests | |||
@@ -4,6 +4,18 @@ | |||
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | 6 | ||
7 | # testing "test name" "command" "expected result" "file input" "stdin" | ||
8 | |||
9 | testing "bc comment 1" \ | ||
10 | "bc" \ | ||
11 | "3\n" \ | ||
12 | "" "1 /* comment */ + 2" | ||
13 | |||
14 | testing "bc comment 2: /*/ is not a closed comment" \ | ||
15 | "bc" \ | ||
16 | "4\n" \ | ||
17 | "" "1 /*/ + 2 */ + 3" | ||
18 | |||
7 | tar xJf bc_large.tar.xz | 19 | tar xJf bc_large.tar.xz |
8 | 20 | ||
9 | for f in bc*.bc; do | 21 | for f in bc*.bc; do |