From 6729dc1c6d69340937ede6b09980ddefb81474a3 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 29 Nov 2017 16:35:48 +0100 Subject: [PATCH] Fixed a failing PlaceholderParser test case. --- t/custom_gcode.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)';