mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Fixed a 32bit build bug in the new PlaceholderParser macro processor.
This commit is contained in:
parent
da8ffd477d
commit
ae118519ab
2 changed files with 43 additions and 28 deletions
|
@ -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)';
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue