summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-05-26 16:09:29 +0000
committerJim Meyering <jim@meyering.net>2005-05-26 16:09:29 +0000
commitf3dfdff4602ec74ce15049960c66aeffab7bf87d (patch)
tree58b351d6251c0bba54023b46eaa5a711af54a484 /tests
parenta7102ac4302f20a80e431ccb8f9c88ad05b268ff (diff)
downloadcoreutils-f3dfdff4602ec74ce15049960c66aeffab7bf87d.tar.xz
Add tests using arithmetic on negative integers.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/expr/basic2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/expr/basic b/tests/expr/basic
index 79ff566a3..c5a843dde 100755
--- a/tests/expr/basic
+++ b/tests/expr/basic
@@ -29,6 +29,8 @@ my @Tests =
['c', '5 \* 6', {OUT => '30'}],
['d', '100 / 6', {OUT => '16'}],
['e', '100 % 6', {OUT => '4'}],
+ ['f', '3 + -2', {OUT => '1'}],
+ ['g', '-2 + -2', {OUT => '-4'}],
['paren1', '\( 100 % 6 \)', {OUT => '4'}],
['paren2', '\( 100 % 6 \) - 8', {OUT => '-4'}],