Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test Date.clone can take a formatter
  • Loading branch information
zoffixznet committed May 11, 2017
1 parent 740ce8f commit f304b99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S32-temporal/Date.t
Expand Up @@ -3,7 +3,7 @@ use Test;

# L<S32::Temporal/C<Date>>

plan 114;
plan 116;

# construction
{
Expand Down Expand Up @@ -250,3 +250,8 @@ subtest 'all Date constructors throw on invalid dates' => {
X::OutOfRange, 'both';
}
}

is Date.today.clone(:formatter{'test is good'}).Str, 'test is good',
'Date.clone can take a formatter';
is Date.today.clone(:1day, :2month, :2017year).Str, '2017-02-01',
'Date.clone without formatter uses default formatter';

0 comments on commit f304b99

Please sign in to comment.