bc: allow {break} and {continue} (allow RBRACE to terminate them)
[oweals/busybox.git] / testsuite / test.tests
index 7d804446731cb55a61f78e779aa73cdf1c5845aa..1c2edaf627cb3a66fa602fb1d2183ec5f6fa9190 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
-# Licensed under GPL v2, see file LICENSE for details.
+# Licensed under GPLv2, see file LICENSE in this source tree.
 
 . ./testing.sh
 
@@ -76,4 +76,24 @@ testing "test ! a = b -a ! c = d: should be true (0)" \
        "0\n" \
        "" ""
 
+testing "test '!' = '!': should be true (0)" \
+       "busybox test '!' = '!'; echo \$?" \
+       "0\n" \
+       "" ""
+
+testing "test '(' = '(': should be true (0)" \
+       "busybox test '(' = '('; echo \$?" \
+       "0\n" \
+       "" ""
+
+testing "test '!' '!' = '!': should be false (1)" \
+       "busybox test '!' '!' = '!'; echo \$?" \
+       "1\n" \
+       "" ""
+
+testing "test '!' '(' = '(': should be false (1)" \
+       "busybox test '!' '(' = '('; echo \$?" \
+       "1\n" \
+       "" ""
+
 exit $FAILCOUNT