projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7102ac
)
Add tests using arithmetic on negative integers.
author
Jim Meyering
<jim@meyering.net>
Thu, 26 May 2005 16:09:29 +0000
(16:09 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 26 May 2005 16:09:29 +0000
(16:09 +0000)
tests/expr/basic
patch
|
blob
|
history
diff --git
a/tests/expr/basic
b/tests/expr/basic
index
79ff566
..
c5a843d
100755
(executable)
--- 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'}],