diff options
| author | Jim Meyering <jim@meyering.net> | 2005-05-26 16:09:29 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2005-05-26 16:09:29 +0000 |
| commit | f3dfdff4602ec74ce15049960c66aeffab7bf87d (patch) | |
| tree | 58b351d6251c0bba54023b46eaa5a711af54a484 /tests/expr/basic | |
| parent | (fd_safer) [_LGPL_PACKAGE]: New static function, (diff) | |
| download | coreutils-f3dfdff4602ec74ce15049960c66aeffab7bf87d.tar.gz coreutils-f3dfdff4602ec74ce15049960c66aeffab7bf87d.zip | |
Add tests using arithmetic on negative integers.
Diffstat (limited to 'tests/expr/basic')
| -rwxr-xr-x | tests/expr/basic | 2 |
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'}], |
