aboutsummaryrefslogtreecommitdiff
path: root/testsuite/bc.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-11-23 17:25:21 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2019-11-23 17:25:21 +0100
commit008413754ba588e6168c3d15280181fb2c331770 (patch)
tree63230968da2a89a25c269264986ee84622de8f4a /testsuite/bc.tests
parentd3539be8f27b8cbfdfee460fe08299158f08bcd9 (diff)
downloadbusybox-008413754ba588e6168c3d15280181fb2c331770.tar.gz
bc: fix comparison bug, closes 12336
function old new delta bc_num_cmp 249 259 +10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bc.tests')
-rwxr-xr-xtestsuite/bc.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests
index 3fde60a2c..179d5d2a2 100755
--- a/testsuite/bc.tests
+++ b/testsuite/bc.tests
@@ -187,6 +187,11 @@ testing "bc { print 1 }" \
"1" \
"" "{ print 1 }"
+testing "bc comparison 1" \
+ "bc" \
+ "1\n" \
+ "" "-10 < -9"
+
testing "bc nested loops and breaks" \
"bc" \
"\