mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
Decoupled a generic Config implementation from the PrintConfig definitions
This commit is contained in:
parent
b2b67372ad
commit
56d4da2ac7
9 changed files with 200 additions and 154 deletions
|
|
@ -4,7 +4,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
use Slic3r::XS;
|
||||
use Test::More tests => 32;
|
||||
use Test::More tests => 33;
|
||||
|
||||
{
|
||||
my $config = Slic3r::Config->new;
|
||||
|
|
@ -48,6 +48,8 @@ use Test::More tests => 32;
|
|||
$config->set('gcode_flavor', 'teacup');
|
||||
is $config->get('gcode_flavor'), 'teacup', 'set/get enum';
|
||||
is $config->serialize('gcode_flavor'), 'teacup', 'serialize enum';
|
||||
$config->set_deserialize('gcode_flavor', 'mach3');
|
||||
is $config->get('gcode_flavor'), 'mach3', 'deserialize enum';
|
||||
|
||||
$config->set('extruder_offset', [[10,20],[30,45]]);
|
||||
is_deeply $config->get('extruder_offset'), [[10,20],[30,45]], 'set/get points';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue