-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpan/Time-Piece - Update to version 1.35
1.35 2025-01-06 - Convert tests from Test.pm to Test::More - Eliminate C++ guards - Fix minor typoes/spelling mistakes in comments/docs
- Loading branch information
Showing
7 changed files
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package Time::Seconds; | ||
use strict; | ||
|
||
our $VERSION = '1.3401'; | ||
our $VERSION = '1.35'; | ||
|
||
use Exporter 5.57 'import'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Tests for overloads (+,-,<,>, etc) | ||
use Test; | ||
BEGIN { plan tests => 1 } | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More tests => 1; | ||
use Time::Piece; | ||
my $t = localtime; | ||
my $s = Time::Seconds->new(15); | ||
eval { my $result = $t + $s }; | ||
ok($@, "", "Adding Time::Seconds does not cause runtime error"); | ||
is($@, "", "Adding Time::Seconds does not cause runtime error"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# this package is identical, but will be ->isa('Time::Piece::Twin'); | ||
package Time::Piece::Twin; | ||
use base qw(Time::Piece); | ||
our $VERSION = "0.01"; | ||
our $VERSION = "1.35"; |