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/t
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-11-26 22:43:31 +0300
committerbubnikv <bubnikv@gmail.com>2017-11-26 22:43:31 +0300
commitb54a15faa2304f9d4326379e3a13a368d3464418 (patch)
tree75574b245e1e22e678c9428fb551c6c83d956e9d /t
parent571d654e67896d10ea760ca62c092ae239bc3262 (diff)
Fix of the new PlaceholderParser: Maintain whitespaces and new lines.
Diffstat (limited to 't')
-rw-r--r--t/custom_gcode.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/custom_gcode.t b/t/custom_gcode.t
index 62bd7993c..2cb9a44b8 100644
--- a/t/custom_gcode.t
+++ b/t/custom_gcode.t
@@ -1,4 +1,4 @@
-use Test::More tests => 39;
+use Test::More tests => 40;
use strict;
use warnings;
@@ -55,6 +55,9 @@ use Slic3r::Test;
is $parser->process('{temperature[foo]}'),
$config->temperature->[0],
"array reference";
+ is $parser->process("test [ temperature_ [foo] ] \n hu"),
+ "test " . $config->temperature->[0] . " \n hu",
+ "whitespaces and newlines are maintained";
}
{