diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-07-01 20:35:22 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-07-01 20:35:22 +0300 |
commit | 580d28d071c6c7d3338dc643b99e41773a540846 (patch) | |
tree | e68332503d4b0a1011a2448fd3889dd9e319ba9f /t/custom_gcode.t | |
parent | 249088b4f8d5ac61c97c6590e6d8b3cb3ba6f88b (diff) |
Finished porting PlaceholderParser to XS
Diffstat (limited to 't/custom_gcode.t')
-rw-r--r-- | t/custom_gcode.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/custom_gcode.t b/t/custom_gcode.t index cbd5741f4..9d68d1eed 100644 --- a/t/custom_gcode.t +++ b/t/custom_gcode.t @@ -47,7 +47,8 @@ use Slic3r::Test; { my $parser = Slic3r::GCode::PlaceholderParser->new; $parser->apply_config(my $config = Slic3r::Config->new_from_defaults); - is $parser->process('[temperature_[foo]]', { foo => '1' }), + $parser->set('foo' => '0'); + is $parser->process('[temperature_[foo]]'), $config->temperature->[0], "nested config options"; } |