[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] tests: tac: add a test case for the previous fix
|
From: |
Collin Funk |
|
Subject: |
[PATCH 3/3] tests: tac: add a test case for the previous fix |
|
Date: |
Tue, 17 Nov 2026 22:26:38 -0800 |
From: Ismail Ramzi <ismail@bugqore.com>
* tests/tac/tac.pl (@Tests): Add a test case.
---
tests/tac/tac.pl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/tac/tac.pl b/tests/tac/tac.pl
index cd97ab10d..1d1d235b8 100755
--- a/tests/tac/tac.pl
+++ b/tests/tac/tac.pl
@@ -105,6 +105,12 @@ my @Tests =
do { my $sep_x = 'x' x ($INITIAL_READSIZE - 1);
({IN=>$sep_x . 'aaa'},
{OUT=>$sep_x . 'aaa'}); }],
+ ['buf-sep-4', '-b -s ab',
+ do { my $sep_x = 'x' x ($INITIAL_READSIZE - 1) . 'a';
+ my $sep_y = 'y' x ($INITIAL_READSIZE - 2);
+ my $sep_z = 'z' x ($INITIAL_READSIZE - 1);
+ ({IN=>$sep_x . 'ab' . $sep_y . 'b' . $sep_z},
+ {OUT=>'ab' . $sep_y . 'b' . $sep_z . $sep_x}); }],
);
@Tests = triple_test \@Tests;
--
2.56.1