summaryrefslogtreecommitdiff
path: root/tests/tsort
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-08-22 16:09:29 +0000
committerJim Meyering <jim@meyering.net>1999-08-22 16:09:29 +0000
commit5157fd957eb87c7ba0b20485f125048c50a751ab (patch)
tree729c8a0672c360d837d39a5b1a31f65dea4932e3 /tests/tsort
parentd39e2c5127940caa322fef9a67321c46fbf35c9c (diff)
downloadcoreutils-5157fd957eb87c7ba0b20485f125048c50a751ab.tar.xz
Add a few more tests.
Diffstat (limited to 'tests/tsort')
-rwxr-xr-xtests/tsort/basic-18
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tsort/basic-1 b/tests/tsort/basic-1
index ce73e4772..c67f67a57 100755
--- a/tests/tsort/basic-1
+++ b/tests/tsort/basic-1
@@ -33,6 +33,14 @@ my @Tests =
{OUT => "a\nc\nd\nh\nb\ne\nf\ng\n"}],
['posix-2', {IN => "b a\nd c\nz h x h r h\n"},
{OUT => "b\nd\nr\nx\nz\na\nc\nh\n"}],
+
+ ['linear-1', {IN => "a b b c c d d e e f f g\n"},
+ {OUT => "a\nb\nc\nd\ne\nf\ng\n"}],
+
+ ['tree-1', {IN => "a b b c c d d e e f f g\nc x x y y z\n"},
+ {OUT => "a\nb\nc\nx\nd\ny\ne\nz\nf\ng\n"}],
+ ['tree-2', {IN => "a b b c c d d e e f f g\nc x x y y z\nf r r s s t\n"},
+ {OUT => "a\nb\nc\nx\nd\ny\ne\nz\nf\nr\ng\ns\nt\n"}],
);
my $save_temps = $ENV{DEBUG};