Skip to content

Commit 9b43296

Browse files
Kodi ArferKodi Arfer
authored andcommitted
Added a test for Instant.perl.
1 parent ef6df94 commit 9b43296

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

S32-temporal/DateTime-Instant-Duration.t

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use v6;
22
use Test;
33

4+
plan 33;
5+
46
=begin pod
57
68
DateTime is the only means of constructing arbitrary Instants,
@@ -121,7 +123,9 @@ is DateTime.new(dtpi 2006, 1, 1, 0, 0, 0.2).second, 0.2, 'Round-tripping
121123
is ~$dt, '31/12/1999 59s4m18h', 'DateTime.new(Instant) with time zone and formatter';
122124
}
123125

124-
125-
done;
126+
{
127+
my $i = dtpi 1988, 11, 22, 18, 42, 15.9;
128+
is $i.perl.eval, $i, 'Round-tripping Instant.perl';
129+
}
126130

127131
# vim: ft=perl6

0 commit comments

Comments
 (0)