Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-04-21 16:46:47 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-04-21 16:46:47 +0300
commitdcfa1d10cfb63ed25efc77e1038ab7eb0fdda675 (patch)
treea562a3681bccaf8e794ce2a6c63dca8133340193 /xs
parentee53894c4009a9fad6ac560ea0405c8f3ae21340 (diff)
Yet another Perl test
Diffstat (limited to 'xs')
-rw-r--r--xs/t/15_config.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/xs/t/15_config.t b/xs/t/15_config.t
index a79fe7a37..6326cae10 100644
--- a/xs/t/15_config.t
+++ b/xs/t/15_config.t
@@ -4,7 +4,7 @@ use strict;
use warnings;
use Slic3r::XS;
-use Test::More tests => 146;
+use Test::More tests => 144;
foreach my $config (Slic3r::Config->new, Slic3r::Config::Static::new_FullPrintConfig) {
$config->set('layer_height', 0.3);
@@ -70,9 +70,10 @@ 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';
is $config->opt_serialize('first_layer_height'), '0.3', 'serialize absolute floatOrPercent';
- $config->set('first_layer_height', $config->get('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';
+# This is no more supported after first_layer_height was moved from PrintObjectConfig to PrintConfig.
+# $config->set('first_layer_height', $config->get('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';
# is $config->opt_serialize('first_layer_height'), '50%', 'serialize relative floatOrPercent';
# Uh-oh, we have no point option to test at the moment