summaryrefslogtreecommitdiff
path: root/cpan/version
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-11 09:03:14 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-01-04 05:10:03 -0800
commit11e14f5aadedb74e66c75f3baa44e4eb93dcf1c1 (patch)
tree13537580de2810bce1889abc48d391c16d7250ee /cpan/version
parent0c96c5119b141504870531786977196e1fe39c5f (diff)
downloadperl-11e14f5aadedb74e66c75f3baa44e4eb93dcf1c1.tar.gz
[rt.cpan.org #88495] version->new str cmp bug
We shouldn’t consider ver and version to be the same class. If ver inherits from version, ver->new should give a ver object. This string comparison bug has only ever existed in the perl core version of the version routines. It was ed1db70e1224 in 5.16 that introduced it.
Diffstat (limited to 'cpan/version')
-rw-r--r--cpan/version/t/coretests.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpan/version/t/coretests.pm b/cpan/version/t/coretests.pm
index 080b6ae32f..34b0181fc7 100644
--- a/cpan/version/t/coretests.pm
+++ b/cpan/version/t/coretests.pm
@@ -576,6 +576,11 @@ SKIP: {
is $v->numify, '0.520', 'Correctly nummified';
}
+ { # https://rt.cpan.org/Ticket/Display.html?id=88495
+ @ver::ISA = "version";
+ is ref(ver->new), 'ver', 'ver can inherit from version';
+ }
+
}
1;