File: Catmandu-Fix-stat_mode.t

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

use strict;
use warnings;
use Test::More;
use Test::Exception;

my $pkg;
BEGIN {
    $pkg = 'Catmandu::Fix::stat_mode';
    use_ok $pkg;
}

require_ok $pkg;

lives_ok { $pkg->new('numbers')->fix({ numbers => [1,2,3,3,3,4] }) };

is_deeply 
$pkg->new('numbers')->fix({ numbers => [1,2,3,3,3,4] }), 
{ numbers => 3 }, "Simple mode ok";


done_testing 4;