From e7139c514dc920ed5d56bb97affc50b7990ce306 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 6 Feb 2013 10:21:23 +0100 Subject: [PATCH] Rename shortest_path() in tests too. #980 --- t/fill.t | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/t/fill.t b/t/fill.t index 5576374a8..b5ebd5dcf 100644 --- a/t/fill.t +++ b/t/fill.t @@ -48,9 +48,9 @@ sub scale_points (@) { map [scale $_->[X], scale $_->[Y]], @_ } Slic3r::Polyline->new([0,10], [0,8], [0,5]), ]); is_deeply - [ map $_->[Y], map @$_, $collection->shortest_path(Slic3r::Point->new(0,30)) ], + [ map $_->[Y], map @$_, $collection->chained_path(Slic3r::Point->new(0,30)) ], [20, 18, 15, 10, 8, 5], - 'shortest path'; + 'chained path'; } { @@ -59,9 +59,9 @@ sub scale_points (@) { map [scale $_->[X], scale $_->[Y]], @_ } Slic3r::Polyline->new([10,5], [15,5], [20,5]), ]); is_deeply - [ map $_->[X], map @$_, $collection->shortest_path(Slic3r::Point->new(30,0)) ], + [ map $_->[X], map @$_, $collection->chained_path(Slic3r::Point->new(30,0)) ], [reverse 4, 10, 15, 10, 15, 20], - 'shortest path'; + 'chained path'; } { @@ -71,9 +71,9 @@ sub scale_points (@) { map [scale $_->[X], scale $_->[Y]], @_ } Slic3r::Polyline->new([0,10], [0,8], [0,5]), ]); is_deeply - [ map $_->[Y], map @{$_->unpack->polyline}, $collection->shortest_path(Slic3r::Point->new(0,30)) ], + [ map $_->[Y], map @{$_->unpack->polyline}, $collection->chained_path(Slic3r::Point->new(0,30)) ], [20, 18, 15, 10, 8, 5], - 'shortest path'; + 'chained path'; } { @@ -83,9 +83,9 @@ sub scale_points (@) { map [scale $_->[X], scale $_->[Y]], @_ } Slic3r::Polyline->new([10,5], [15,5], [20,5]), ]); is_deeply - [ map $_->[X], map @{$_->unpack->polyline}, $collection->shortest_path(Slic3r::Point->new(30,0)) ], + [ map $_->[X], map @{$_->unpack->polyline}, $collection->chained_path(Slic3r::Point->new(30,0)) ], [reverse 4, 10, 15, 10, 15, 20], - 'shortest path'; + 'chained path'; } {