Skip to content

Commit 8a0f35b

Browse files
committed
[cookbook] match today's date output more generally
1 parent 7f4b99d commit 8a0f35b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

t/categories/cookbook/03dates-and-times.t

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ subtest {
88
plan 1;
99

1010
my $example-name = "03-01-todays-date.pl";
11-
my $expected-output = q:to/EOD/;
12-
2015 5 9
13-
EOD
11+
my $expected-output = rx/\d ** 4 \s+ \d ** 1..2 \s+ \d ** 1..2/;
1412

1513
my $output = run-example($example-name);
16-
is($output, $expected-output, $example-name);
14+
like($output, $expected-output, $example-name);
1715
}, "03-01-todays-date.pl";
1816

1917
subtest {

0 commit comments

Comments
 (0)