diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-01-28 03:40:08 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-01-28 03:40:08 +0400 |
commit | 4d70748723163a5330b3f46078c88a3e54eefc57 (patch) | |
tree | 73fa75f22c84cf3a7b23ab442bb914108fce271a /t/polyclip.t | |
parent | 721b61e798623178a8ce3c30894e1640979c83f6 (diff) |
Make tests happy about the new Boost::Geometry::Utils working with integers
Diffstat (limited to 't/polyclip.t')
-rw-r--r-- | t/polyclip.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/polyclip.t b/t/polyclip.t index 285ef45be..49e3be175 100644 --- a/t/polyclip.t +++ b/t/polyclip.t @@ -92,7 +92,7 @@ is_deeply $intersection, [ [12, 12], [18, 16] ], 'internal lines are preserved'; { my $intersections = $expolygon->clip_line(Slic3r::Line->new(reverse @$line)); is_deeply $intersections, [ - [ [20, 15], [16, 15] ], + [ [20, 15], [15, 15] ], [ [14, 15], [10, 15] ], ], 'reverse line is clipped to square with hole'; } @@ -144,8 +144,8 @@ is_deeply $intersection, [ [12, 12], [18, 16] ], 'internal lines are preserved'; my $intersections = $expolygon->clip_line($line); is_deeply $intersections, [ - [ [152.742, 288.087], [152.742, 215.179], ], - [ [152.742, 108.088], [152.742, 35.1665] ], + [ [152, 287], [152, 214], ], + [ [152, 107], [152, 35] ], ], 'line is clipped to square with hole'; } |