jonathancrabtree / Circleator

Flexible circular visualization of genome-associated data with BioPerl and SVG.
Other
46 stars 8 forks source link

Make t/circleator.t insensitive to minor Perl SVG module changes. #1

Closed jonathancrabtree closed 6 years ago

jonathancrabtree commented 10 years ago

Currently t/circleator.t is highly sensitive to the version of the Perl SVG module used, not least because the version number gets written into the SVG file itself e.g.,

Generated using the Perl SVG Module V2.59
by Ronan Oger
Info: http://www.roitsystems.com/

This should be easy to fix and we might also consider ignoring the following when comparing the test .svg file with the manually-verified version in t/results:

jonathancrabtree commented 10 years ago

Done, although the whitespace and decimal precision issues haven't been addressed.

jonathancrabtree commented 9 years ago

The whitespace issue needs to be addressed, at least the case where versions of the SVG module differ in their placement of newline characters, like so:

<           <text font-size="50" font-weight="bold" text-anchor="start" transform="rotate(-90)" x="0" y="0">0.0Mb</text>
---
>           <text font-size="50" font-weight="bold" text-anchor="start" transform="rotate(-90)" x="0" y="0">0.0Mb
>           </text>
jonathancrabtree commented 8 years ago

t/circleator.t now only looks at the first 10 decimal places when comparing coordinate values. All that remains now is the whitespace issue.