summaryrefslogtreecommitdiff
path: root/tests/expr
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-18 17:14:52 +0000
committerJim Meyering <jim@meyering.net>2001-08-18 17:14:52 +0000
commit9402bfd9ef7221d2915102634287cced5e4ef0cf (patch)
tree60a5ce6817a5e8455abe63563a617068f112fe16 /tests/expr
parenta39a7f8ada727f8fd1e399fa3c55159c5f1f97aa (diff)
downloadcoreutils-9402bfd9ef7221d2915102634287cced5e4ef0cf.tar.xz
add minus2
Diffstat (limited to 'tests/expr')
-rwxr-xr-xtests/expr/basic4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/expr/basic b/tests/expr/basic
index 578857e5f..699e10ac2 100755
--- a/tests/expr/basic
+++ b/tests/expr/basic
@@ -32,6 +32,10 @@ my @Tests =
['d', '100 / 6', {OUT => '16'}],
['e', '100 % 6', {OUT => '4'}],
+ # This evoked a syntax error diagnostic before 2.0.12.
+ ['minus2', '-- 2 + 2', {OUT => '4'}],
+
+ # This erroneously succeeded and output `3' before 2.0.12.
['fail-a', '3 + -', {ERR => "$prog: non-numeric argument\n"},
{EXIT => 2}],
);