From 9d3ade81fa140d898a01fffac2a7ec06f022aef6 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 21 Dec 2017 17:27:24 +0100 Subject: [PATCH] Fixed placeholder parser tests. --- t/custom_gcode.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/custom_gcode.t b/t/custom_gcode.t index 5d3602483..6a930a38a 100644 --- a/t/custom_gcode.t +++ b/t/custom_gcode.t @@ -87,8 +87,8 @@ use Slic3r::Test; is $parser->evaluate_boolean_expression('(12 == 12) and not (13 == 14)'), 1, 'boolean expression parser: (12 == 12) and not (13 == 14)'; is $parser->evaluate_boolean_expression('(12 == 12) ? (1 - 1 == 0) : (2 * 2 == 3)'), 1, 'boolean expression parser: ternary true'; is $parser->evaluate_boolean_expression('(12 == 21/2) ? (1 - 1 == 0) : (2 * 2 == 3)'), 0, 'boolean expression parser: ternary false'; - is $parser->evaluate_boolean_expression('(12 == 13) ? (1 - 1 == 3) : (2 * 2 == 4)"'), 1, 'boolean expression parser: ternary false'; - is $parser->evaluate_boolean_expression('(12 == 2 * 6) ? (1 - 1 == 3) : (2 * 2 == 4)"'), 0, 'boolean expression parser: ternary true'; + is $parser->evaluate_boolean_expression('(12 == 13) ? (1 - 1 == 3) : (2 * 2 == 4)'), 1, 'boolean expression parser: ternary false'; + is $parser->evaluate_boolean_expression('(12 == 2 * 6) ? (1 - 1 == 3) : (2 * 2 == 4)'), 0, 'boolean expression parser: ternary true'; is $parser->evaluate_boolean_expression('12 < 3'), 0, 'boolean expression parser: lower than - false'; is $parser->evaluate_boolean_expression('12 < 22'), 1, 'boolean expression parser: lower than - true'; is $parser->evaluate_boolean_expression('12 > 3'), 1, 'boolean expression parser: lower than - true';