File: class-date-invalid.t

package info (click to toggle)
libclass-date-perl 1.1.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 364 kB
  • sloc: perl: 922; xml: 273; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 228 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use Test::More tests => 2;

use Test::Warnings;

use Class::Date::Invalid;

my $self = [ 1, 123 ];
bless $self, 'Class::Date::Invalid';

# that used to warn - GH#9
like $self->errmsg, qr'Invalid';