[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] Added tests for join --check-order and --nocheck-order.
From: |
James Youngman |
Subject: |
[PATCH 2/2] Added tests for join --check-order and --nocheck-order. |
Date: |
Sun, 17 Feb 2008 20:03:42 +0000 |
2008-02-17 James Youngman <address@hidden>
* tests/join/Test.pm (tv): Added tests for --check-order and
--nocheck-order.
Signed-off-by: James Youngman <address@hidden>
---
tests/join/Test.pm | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/tests/join/Test.pm b/tests/join/Test.pm
index 4813604..384e878 100644
--- a/tests/join/Test.pm
+++ b/tests/join/Test.pm
@@ -140,6 +140,27 @@ my @tv = (
# FIXME: change this to ensure the diagnostic makes sense
['invalid-j', '-j x', {}, "", 1],
+# With ordering check, inputs in order
+['chkodr-1', '--check-order',
+ [" a 1\n b 2\n", " a Y\n b Z\n"], "a 1 Y\nb 2 Z\n", 0],
+
+# Without check, inputs in order
+['chkodr-2', '--nocheck-order',
+ [" a 1\n b 2\n", " a Y\n b Z\n"], "a 1 Y\nb 2 Z\n", 0],
+
+# Without check, both inputs out of order (in fact, in reverse order)
+# Support for this is a GNU extension.
+['chkodr-3', '--nocheck-order',
+ [" b 1\n a 2\n", " b Y\n a Z\n"], "b 1 Y\na 2 Z\n", 0],
+
+# The extension should work without --nocheck-order, since that is the
+# default.
+['chkodr-4', '',
+ [" b 1\n a 2\n", " b Y\n a Z\n"], "b 1 Y\na 2 Z\n", 0],
+
+# With check, both inputs out of order (in fact, in reverse order)
+['chkodr-5', '--check-order',
+ [" b 1\n a 2\n", " b Y\n a Z\n"], "", 1]
);
--
1.5.3.8
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 2/2] Added tests for join --check-order and --nocheck-order.,
James Youngman <=