diff options
author | Eugene Gladchenko <gladchenko@gmail.com> | 2019-11-21 15:31:00 +0000 |
---|---|---|
committer | Eugene Gladchenko <gladchenko@gmail.com> | 2019-11-21 15:31:00 +0000 |
commit | 888c422c21b558d3778d4ad215fd54f9387a137b (patch) | |
tree | 7e0052f78a8567ff6e7b92c7097076afeca96f54 | |
parent | 38cc5145cb66ba9f1706630d5f987d60a46fb1b1 (diff) | |
download | bc-888c422c21b558d3778d4ad215fd54f9387a137b.tar.gz |
Add a test to compare negative numbers
-rw-r--r-- | tests/bc/all.txt | 1 | ||||
-rw-r--r-- | tests/bc/compneg.txt | 2 | ||||
-rw-r--r-- | tests/bc/compneg_results.txt | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/bc/all.txt b/tests/bc/all.txt index 3bdca599..651fa4b0 100644 --- a/tests/bc/all.txt +++ b/tests/bc/all.txt @@ -13,6 +13,7 @@ trunc places vars boolean +compneg abs assignments functions diff --git a/tests/bc/compneg.txt b/tests/bc/compneg.txt new file mode 100644 index 00000000..ca621ead --- /dev/null +++ b/tests/bc/compneg.txt @@ -0,0 +1,2 @@ +-999999999 < -1 +-1000000000 < -1 diff --git a/tests/bc/compneg_results.txt b/tests/bc/compneg_results.txt new file mode 100644 index 00000000..6ed281c7 --- /dev/null +++ b/tests/bc/compneg_results.txt @@ -0,0 +1,2 @@ +1 +1 |