Another last perl unit test fix

This commit is contained in:
Vojtech Bubnik 2021-04-21 15:43:41 +02:00
parent 39deffdf5b
commit ee53894c40

View File

@ -70,7 +70,7 @@ foreach my $config (Slic3r::Config->new, Slic3r::Config::Static::new_FullPrintCo
ok abs($config->get('first_layer_height') - 0.3) < 1e-4, 'set/get absolute floatOrPercent'; ok abs($config->get('first_layer_height') - 0.3) < 1e-4, 'set/get absolute floatOrPercent';
is $config->opt_serialize('first_layer_height'), '0.3', 'serialize absolute floatOrPercent'; is $config->opt_serialize('first_layer_height'), '0.3', 'serialize absolute floatOrPercent';
$config->set('first_layer_height', $config->layer_height); $config->set('first_layer_height', $config->get('layer_height'));
$config->get_abs_value('first_layer_height'); $config->get_abs_value('first_layer_height');
ok abs($config->get_abs_value('first_layer_height') - 0.15) < 1e-4, 'set/get relative floatOrPercent'; ok abs($config->get_abs_value('first_layer_height') - 0.15) < 1e-4, 'set/get relative floatOrPercent';
# is $config->opt_serialize('first_layer_height'), '50%', 'serialize relative floatOrPercent'; # is $config->opt_serialize('first_layer_height'), '50%', 'serialize relative floatOrPercent';