Make tests happy about the new Boost::Geometry::Utils working with integers

This commit is contained in:
Alessandro Ranellucci 2013-01-28 00:40:08 +01:00
parent 721b61e798
commit 4d70748723
2 changed files with 6 additions and 5 deletions

View file

@ -32,8 +32,9 @@ use Slic3r;
my $polyline = Slic3r::Polyline->new([
[0,0],[0.5,0.5],[1,0],[1.25,-0.25],[1.5,.5],
]);
$polyline->simplify(0.25);
is_deeply $polyline, [ [0, 0], [0.5, 0.5], [1.25, -0.25], [1.5, 0.5] ], 'Douglas-Peucker';
$polyline->scale(100);
$polyline->simplify(25);
is_deeply $polyline, [ [0, 0], [50, 50], [125, -25], [150, 50] ], 'Douglas-Peucker';
}
{