summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-18 21:21:40 +0000
committerJim Meyering <jim@meyering.net>2001-08-18 21:21:40 +0000
commitf623b9cc48d352d8c601672e96511f86d568a69f (patch)
tree6cc5fc2b997f2103064282ca481da5b22f941e5a
parent7808919ea40852ffe991d528b69549b52dc50926 (diff)
downloadcoreutils-f623b9cc48d352d8c601672e96511f86d568a69f.tar.xz
add paren tests
-rwxr-xr-xtests/expr/basic6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/expr/basic b/tests/expr/basic
index ac23e4504..e1c213833 100755
--- a/tests/expr/basic
+++ b/tests/expr/basic
@@ -32,6 +32,12 @@ my @Tests =
['d', '100 / 6', {OUT => '16'}],
['e', '100 % 6', {OUT => '4'}],
+ ['paren1', '\( 100 % 6 \)', {OUT => '4'}],
+ ['paren2', '\( 100 % 6 \) - 8', {OUT => '-4'}],
+ ['paren3', '9 / \( 100 % 6 \) - 8', {OUT => '-6'}],
+ ['paren4', '9 / \( \( 100 % 6 \) - 8 \)', {OUT => '-2'}],
+ ['paren5', '9 + \( 100 % 6 \)', {OUT => '13'}],
+
# Before 2.0.12, this would output `1'.
['00', '00 \< 0!', {OUT => '0'}, {EXIT => 1}],