File: 06__list.t

package info (click to toggle)
libpetal-utils-perl 0.06-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: perl: 935; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl

##
## Tests for Petal::Utils :list modifiers
##

use strict;
#use warnings;

use Test::More qw( no_plan );

use Carp;
use t::LoadPetal;

use Petal::Utils qw( :list );

my $hash = {
	array_ref => [ 1..3 ],
};
my $template = Petal->new('list.html');
my $out      = $template->process( $hash );

# Sort
like($out, qr/sort:.+?1.+2.+3/, 'sort');