diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-04-05 12:18:00 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-04-05 12:18:00 +0400 |
commit | d2a619496029fa38479c53a2d56c07d835d2fde9 (patch) | |
tree | f560eface731a56aea744f95591e7cac329f5038 /t/multi.t | |
parent | 6f3844c1ba87610a29356e91081811c35d815ddc (diff) |
Fix the 'extruder' behavior in CLI and test that Print::Simple accepts an incomplete DynamicConfig object
Diffstat (limited to 't/multi.t')
-rw-r--r-- | t/multi.t | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,4 +1,4 @@ -use Test::More tests => 7; +use Test::More tests => 8; use strict; use warnings; @@ -67,7 +67,15 @@ use Slic3r::Test; } { - my $config = Slic3r::Config->new_from_defaults; + my $config = Slic3r::Config->new; + $config->set('extruder', 2); + + my $print = Slic3r::Test::init_print('20mm_cube', config => $config); + like Slic3r::Test::gcode($print), qr/ T1/, 'extruder shortcut'; +} + +{ + my $config = Slic3r::Config->new; $config->set('perimeter_extruder', 2); $config->set('infill_extruder', 2); $config->set('support_material_extruder', 2); |