Skip to content

Commit

Permalink
Follow-up to 0cbbe96: remove input_filename from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatena committed Sep 13, 2023
1 parent 8d9d349 commit 7dcad1a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions t/gcode.t
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Test::More tests => 23;
use Test::More tests => 22;
use strict;
use warnings;

Expand Down Expand Up @@ -185,13 +185,14 @@ use Slic3r::Test;
}
}

{
my $config = Slic3r::Config::new_from_defaults;
$config->set('start_gcode', 'START:[input_filename]');
my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
my $gcode = Slic3r::Test::gcode($print);
like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code';
}
#{
# [input_filename] placeholder was removed in 0cbbe96.
# my $config = Slic3r::Config::new_from_defaults;
# $config->set('start_gcode', 'START:[input_filename]');
# my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
# my $gcode = Slic3r::Test::gcode($print);
# like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code';
#}

# The current Spiral Vase slicing code removes the holes and all but the largest contours from each slice,
# therefore the following test is no more valid.
Expand Down

0 comments on commit 7dcad1a

Please sign in to comment.