From a6057fbdf5dc4dd2b1b1525adc8aef10f04a9644 Mon Sep 17 00:00:00 2001 From: Philipp Imhof <52650214+PhilippImhof@users.noreply.github.com> Date: Wed, 29 Mar 2023 12:06:51 +0200 Subject: [PATCH] fix test --- tests/evaluator_test.php | 4 ++-- tests/parser_test.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/evaluator_test.php b/tests/evaluator_test.php index bf0929e9..a922451c 100644 --- a/tests/evaluator_test.php +++ b/tests/evaluator_test.php @@ -227,11 +227,11 @@ public function provide_assignments(): array { 'constant' => ['a,1,=', 'a = 1'], 'arithmetic expression' => ['a,1,2,3,*,+,=', 'a = 1+2*3'], 'arithmetic expression with ternary in parens' => [ - 'a,5,b,1,==,?,3,:,4,%%ternary,2,*,+,=', + 'a,5,b,1,==,3,4,%%ternary,2,*,+,=', 'a = 5 + (b == 1 ? 3 : 4) * 2' ], 'arithmetic expression with double ternary' => [ - 'a,b,c,==,?,1,:,b,d,==,?,2,:,0,%%ternary,%%ternary,=', + 'a,b,c,==,1,b,d,==,2,0,%%ternary,%%ternary,=', 'a = b == c ? 1 : b == d ? 2 : 0' ], 'arithmetic expression with paren and power' => ['a,3,4,**,5,**,=', 'a = (3**4)**5'], diff --git a/tests/parser_test.php b/tests/parser_test.php index 7b802bdd..d3044e67 100644 --- a/tests/parser_test.php +++ b/tests/parser_test.php @@ -197,11 +197,11 @@ public function provide_assignments(): array { 'constant' => ['a,1,=', 'a = 1'], 'arithmetic expression' => ['a,1,2,3,*,+,=', 'a = 1+2*3'], 'arithmetic expression with ternary in parens' => [ - 'a,5,b,1,==,?,3,:,4,%%ternary,2,*,+,=', + 'a,5,b,1,==,3,4,%%ternary,2,*,+,=', 'a = 5 + (b == 1 ? 3 : 4) * 2' ], 'arithmetic expression with double ternary' => [ - 'a,b,c,==,?,1,:,b,d,==,?,2,:,0,%%ternary,%%ternary,=', + 'a,b,c,==,1,b,d,==,2,0,%%ternary,%%ternary,=', 'a = b == c ? 1 : b == d ? 2 : 0' ], 'arithmetic expression with paren and power' => ['a,3,4,**,5,**,=', 'a = (3**4)**5'],