Skip to content

Commit

Permalink
[instants-and-durations.t] Use .perl so as not to require great accur…
Browse files Browse the repository at this point in the history
…acy from .Str.
  • Loading branch information
Kodi Arfer authored and Kodi Arfer committed Sep 16, 2010
1 parent a41a669 commit e0d9631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S02-builtin_data_types/instants-and-durations.t
Expand Up @@ -30,7 +30,7 @@ isa_ok eval('now +300'), Instant, 'now is a term, not a function';
isa_ok $d + $t0, Instant, 'Instant + Duration ~~ Instant';
isa_ok $d + $t0, Instant, 'Duration + Instant ~~ Instant';
isa_ok $t0 - $d, Instant, 'Instant - Duration ~~ Instant';
is $t0 + ($t1 - $t0), $t1, 'Instant A + (Instant B - Instant A) == Instant A';
is ($t0 + ($t1 - $t0)).perl, $t1.perl, 'Instant A + (Instant B - Instant A) == Instant A';
dies_ok { $d * $d }, 'Duration * Duration is illegal';
dies_ok { $d ** 2 }, 'Duration ** Int is illegal';
isa_ok 2 * $d, Duration, 'Int * Duration ~~ Duration';
Expand Down

0 comments on commit e0d9631

Please sign in to comment.