Fixed a 32bit build bug in the new PlaceholderParser macro processor.

This commit is contained in:
bubnikv 2017-11-29 19:27:26 +01:00
parent da8ffd477d
commit ae118519ab
2 changed files with 43 additions and 28 deletions

View file

@ -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)';
}
{