From: Jim Meyering Date: Thu, 26 May 2005 16:09:29 +0000 (+0000) Subject: Add tests using arithmetic on negative integers. X-Git-Tag: CPPI-1_12~736 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3dfdff4602ec74ce15049960c66aeffab7bf87d;p=thirdparty%2Fcoreutils.git Add tests using arithmetic on negative integers. --- diff --git a/tests/expr/basic b/tests/expr/basic index 79ff566a3b..c5a843ddeb 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'}],