]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
add minus2
authorJim Meyering <jim@meyering.net>
Sat, 18 Aug 2001 17:14:52 +0000 (17:14 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 18 Aug 2001 17:14:52 +0000 (17:14 +0000)
tests/expr/basic

index 578857e5f8bd218fddca1f3a5edabdca315ee3f6..699e10ac21045ab5b2165522e463bebaca4b7ca0 100755 (executable)
@@ -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}],
     );