summaryrefslogtreecommitdiff
path: root/tests/expr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expr')
-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}],