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-29 18:35:48 +0300
committerbubnikv <bubnikv@gmail.com>2017-11-29 18:35:48 +0300
commit6729dc1c6d69340937ede6b09980ddefb81474a3 (patch)
tree2587741759d9b5ff7145341ed8e52e8e75ceab3c /t
parent08e81f2765777f184a220dcf69f0b9f3fe4eeef3 (diff)
Fixed a failing PlaceholderParser test case.
Diffstat (limited to 't')
-rw-r--r--t/custom_gcode.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/custom_gcode.t b/t/custom_gcode.t
index f19971853..9f66a47df 100644
--- a/t/custom_gcode.t
+++ b/t/custom_gcode.t
@@ -62,7 +62,7 @@ use Slic3r::Test;
is $parser->process('{2*3}'), '6', 'math: 2*3';
is $parser->process('{2*3/6}'), '1', 'math: 2*3/6';
is $parser->process('{2*3/12}'), '0', 'math: 2*3/12';
- is $parser->process('{2.*3/12}'), '0.5', 'math: 2.*3/12';
+ ok abs($parser->process('{2.*3/12}') - 0.5) < 1e-7, 'math: 2.*3/12';
is $parser->process('{2*(3-12)}'), '-18', 'math: 2*(3-12)';
is $parser->process('{2*foo*(3-12)}'), '0', 'math: 2*foo*(3-12)';
is $parser->process('{2*bar*(3-12)}'), '-36', 'math: 2*bar*(3-12)';