From 59f0c64e1c8408f0030394ca99019d28346e9912 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 7 Nov 2014 17:27:16 +0100 Subject: [PATCH] Fixed regression test for #2301 --- t/support.t | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/support.t b/t/support.t index fd6d9cb9b..0fadc1d14 100644 --- a/t/support.t +++ b/t/support.t @@ -103,10 +103,12 @@ use Slic3r::Test; $config->set('support_material_extrusion_width', 0.6); $config->set('first_layer_extrusion_width', '100%'); $config->set('bridge_speed', 99); - $config->set('cooling', 0); # prevent speed alteration + $config->set('cooling', 0); # prevent speed alteration + $config->set('first_layer_speed', '100%'); # prevent speed alteration + $config->set('start_gcode', ''); # prevent any unexpected Z move my $print = Slic3r::Test::init_print('20mm_cube', config => $config); - my $layer_id = 0; + my $layer_id = -1; # so that first Z move sets this to 0 my @raft = my @first_object_layer = (); my %first_object_layer_speeds = (); # F => 1 Slic3r::GCode::Reader->new->parse(Slic3r::Test::gcode($print), sub { @@ -134,7 +136,7 @@ use Slic3r::Test; 'first object layer is completely supported by raft'; is scalar(keys %first_object_layer_speeds), 1, 'only one speed used in first object layer'; - is_deeply [ keys %first_object_layer_speeds ], [ $config->bridge_speed*60 ], + ok +(keys %first_object_layer_speeds)[0] == $config->bridge_speed*60, 'bridge speed used in first object layer'; }