The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;
use Test::More tests => 2;
use Tree::Suffix;

my $tree = Tree::Suffix->new(qw(string stringy astring astringy));
my @lrs = $tree->lrs;
is_deeply([sort @lrs], [qw(astring stringy)], 'lrs');

@lrs = $tree->lrs(0, 5);
is_deeply(
    [sort @lrs],
    [qw(astri ringy strin strin tring tring)],
    'lrs(min, max)'
);