Add tests using arithmetic on negative integers.
authorJim Meyering <jim@meyering.net>
Thu, 26 May 2005 16:09:29 +0000 (16:09 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 26 May 2005 16:09:29 +0000 (16:09 +0000)
tests/expr/basic

index 79ff566a3b3ee53706717d1602076e01a1e17a81..c5a843ddeb9d351e70932ba76f35741c01b85b9d 100755 (executable)
@@ -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'}],