Skip to content

Commit

Permalink
t/10-constructors.t: fix abs_diff function to actually allow the amou…
Browse files Browse the repository at this point in the history
…nt of leeway it's meant to
  • Loading branch information
pink-mist committed Apr 23, 2017
1 parent e1ff9e7 commit 75a115c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/10-constructors.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Time::C;

# test all the Time::C constructors thoroughly

sub abs_diff { my ($x, $y, $z) = @_; return abs( $x - $y ) < $z; }
sub abs_diff { my ($x, $y, $z) = @_; return abs( $x - $y ) <= $z; }

my $epoch = time;
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
Expand Down

0 comments on commit 75a115c

Please sign in to comment.