Skip Menu |

This queue is for tickets about the Geo-Point CPAN distribution.

Report information
The Basics
Id: 17243
Status: resolved
Priority: 0/
Queue: Geo-Point

People
Owner: Nobody in particular
Requestors: CLKAO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



I see some test failures on t/20pstr.t, with funny identical strings failing the "is" tests. Attached is the patch fixing the overload with fallback option.
Subject: geo-point.patch
Only in Geo-Point-0.001.clkao: Makefile Only in Geo-Point-0.001.clkao: blib diff -ru Geo-Point-0.001/lib/Geo/Proj.pm Geo-Point-0.001.clkao/lib/Geo/Proj.pm --- Geo-Point-0.001/lib/Geo/Proj.pm Mon Dec 12 11:03:16 2005 +++ Geo-Point-0.001.clkao/lib/Geo/Proj.pm Tue Jan 24 20:06:34 2006 @@ -10,7 +10,7 @@ use Carp qw/croak/; -use overload '""' => sub { shift->nick }; +use overload '""' => sub { shift->nick }, fallback => 1; sub import() diff -ru Geo-Point-0.001/lib/Geo/Shape.pm Geo-Point-0.001.clkao/lib/Geo/Shape.pm --- Geo-Point-0.001/lib/Geo/Shape.pm Mon Dec 12 11:03:16 2005 +++ Geo-Point-0.001.clkao/lib/Geo/Shape.pm Tue Jan 24 20:09:52 2006 @@ -17,8 +17,8 @@ use overload '""' => 'string' , '==' => 'equal' - , bool => sub {1}; - + , bool => sub {1} + , fallback => 1; sub new(@) { (bless {}, shift)->init( {@_} ) } Only in Geo-Point-0.001.clkao: pm_to_blib
Subject: Geo::Point patch
patch accepted. Recently, the Test::* modules have changed behavior wrt overloading. The tests passed in my (latest) Test::* release.