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 79ff566a3b3ee53706717d1602076e01a1e17a81..c5a843ddeb9d351e70932ba76f35741c01b85b9d 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'}],