Skip Menu |

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

Report information
The Basics
Id: 111523
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Geo-Coordinates-OSGB

People
Owner: toby [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.12
Fixed in: 2.13



Subject: t/13edge.t fails with -Duselongdouble
If the test suite is run with a perl compiled with -Duselongdouble, then the following failure happens: # Failed test 'Edge one' # at t/13edge.t line 16. # got: '49.8143931975508816 -6.46357053958959482' # expected: '49.8143931975509 -6.4635705395896' # Looks like you failed 1 test of 14. t/13edge.t .......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/14 subtests
The issue was a carelessly written test in t/13edge.t. This has been redesigned so that the result is rounded to a specific number of decimal places. I have also added testing with a long-double version to my own pre-release test plan. I also added some notes in Background.pm about the performance I see with long-double -- it makes no difference to the accuracy of the conversion (which is limited by the OS formulae themselves, not by Perl's arithmetic), but it seems to slow things down by about 10%-15%.