summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-03-22 06:07:35 +0100
committerJim Meyering <meyering@redhat.com>2011-03-22 07:13:59 +0100
commitb3f6b33e4b31667b9b43708730f6f75f25e8ff57 (patch)
tree8321491316bc0f3a1c308597335f752fb950a9e8
parent3f31ec950b78309a0d12d92d87a735b8870a2289 (diff)
downloadcoreutils-b3f6b33e4b31667b9b43708730f6f75f25e8ff57.tar.xz
tests: exercise tests new "==" operator
* tests/misc/test: Exercise the new operator. * NEWS (Changes in behavior): Mention it.
-rw-r--r--NEWS4
-rwxr-xr-xtests/misc/test2
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9ceaa0659..b2674c0e9 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,10 @@ GNU coreutils NEWS -*- outline -*-
which will discard any cache associated with the files, or
processed portion thereof.
+** Changes in behavior
+
+ test now accepts "==" as a synonym for "="
+
* Noteworthy changes in release 8.10 (2011-02-04) [stable]
diff --git a/tests/misc/test b/tests/misc/test
index 396660b99..f515b7f32 100755
--- a/tests/misc/test
+++ b/tests/misc/test
@@ -132,6 +132,8 @@ my @Tests =
['streq-1', qw(t = t)],
['streq-2', qw(t = f), {EXIT=>1}],
+ ['streqeq-1', qw(t == t)],
+ ['streqeq-2', qw(t == f), {EXIT=>1}],
['streq-3', qw(! = !)],
['streq-4', qw(= = =)],
['streq-5', "'(' = '('"],