Add unit test for polyline_lines
This commit is contained in:
parent
9222526e03
commit
3794d51cc7
12
t/geometry.t
12
t/geometry.t
@ -2,7 +2,7 @@ use Test::More;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
plan tests => 20;
|
plan tests => 21;
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
use FindBin;
|
use FindBin;
|
||||||
@ -155,3 +155,13 @@ is Slic3r::Geometry::can_connect_points(@$points, $polygons), 0, 'can_connect_po
|
|||||||
}
|
}
|
||||||
|
|
||||||
#==========================================================
|
#==========================================================
|
||||||
|
|
||||||
|
{
|
||||||
|
my $polyline = Slic3r::Polyline->new([0, 0], [10, 0], [20, 0]);
|
||||||
|
is_deeply [$polyline->lines], [
|
||||||
|
[ [0, 0], [10, 0] ],
|
||||||
|
[ [10, 0], [20, 0] ],
|
||||||
|
], 'polyline_lines';
|
||||||
|
}
|
||||||
|
|
||||||
|
#==========================================================
|
Loading…
Reference in New Issue
Block a user