From a950fbe0c2f7384fda38d0e6816a4406dcfc0e71 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 22 Nov 2013 16:19:15 +0100 Subject: Removed more unused functions and fixed tests --- t/polyclip.t | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 't/polyclip.t') diff --git a/t/polyclip.t b/t/polyclip.t index 6ed0028a1..1292d3216 100644 --- a/t/polyclip.t +++ b/t/polyclip.t @@ -2,7 +2,7 @@ use Test::More; use strict; use warnings; -plan tests => 19; +plan tests => 18; BEGIN { use FindBin; @@ -78,14 +78,6 @@ my $square = Slic3r::Polygon->new( # ccw is $intersection->[0]->length, Slic3r::Line->new([100,180], [200,180])->length, 'tangent line is clipped to square with hole'; } - { - my $polyline = Slic3r::Polyline->new([50, 180], [250, 180], [250, 150], [150, 150], [150, 120], [120, 120], [120, 50]); - is_deeply [ map $_->pp, $polyline->clip_with_expolygon($expolygon) ], [ - [ [100, 180], [200, 180] ], - [ [200, 150], [160, 150] ], - [ [150, 140], [150, 120], [120, 120], [120, 100] ], - ], 'polyline is clipped to square with hole'; - } } #========================================================== -- cgit v1.2.3