Skip to content

Commit

Permalink
get rid of .perl for Instant comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Feb 7, 2011
1 parent 63157bc commit b3ef08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S02-builtin_data_types/instants-and-durations.t
Original file line number Diff line number Diff line change
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)).perl, $t1.perl, 'Instant A + (Instant B - Instant A) == Instant B';
is $t0 + ($t1 - $t0), $t1, 'Instant A + (Instant B - Instant A) == Instant B';
}

done;
Expand Down

0 comments on commit b3ef08d

Please sign in to comment.