diff options
author | bubnikv <bubnikv@gmail.com> | 2017-11-29 21:27:26 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-11-29 21:27:26 +0300 |
commit | ae118519abdf6dfbcf3eab34fe5b3e2efcbec600 (patch) | |
tree | e82085bc517e3ff5be4226698f5d0c6bbd62aa1c /t | |
parent | da8ffd477d04a34c3ab2e4ce6a851cc61e173b29 (diff) |
Fixed a 32bit build bug in the new PlaceholderParser macro processor.
Diffstat (limited to 't')
-rw-r--r-- | t/custom_gcode.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/custom_gcode.t b/t/custom_gcode.t index 9f66a47df..1ccf738aa 100644 --- a/t/custom_gcode.t +++ b/t/custom_gcode.t @@ -1,4 +1,4 @@ -use Test::More tests => 48; +use Test::More tests => 49; use strict; use warnings; @@ -66,6 +66,7 @@ use Slic3r::Test; 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)'; + ok abs($parser->process('{2.5*bar*(3-12)}') - -45) < 1e-7, 'math: 2.5*bar*(3-12)'; } { |