From: Ismail Ramzi <[email protected]>

* 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


Reply via email to