@@ -23,7 +23,7 @@ using TestItems: @testitem
2323 x2 = Expression (Node (; feature= 2 ); operators, variable_names)
2424 assign_expr = assign_x2 (0.0 * x1 + 3.0 ) + x2
2525
26- @test string_tree (assign_expr) == " [ x2 =] ((0.0 * x1) + 3.0) + x2"
26+ @test string_tree (assign_expr) == " ( x2 ← ((0.0 * x1) + 3.0) ) + x2"
2727
2828 # We should see that x2 will become 3.0 _before_ adding
2929 result, completed = eval_tree_array (assign_expr, X)
@@ -35,7 +35,7 @@ using TestItems: @testitem
3535
3636 # But, with the reverse order, we get the x2 _before_ it was reassigned
3737 assign_expr_reverse = x2 + assign_x2 (0.0 * x1 + 3.0 )
38- @test string_tree (assign_expr_reverse) == " x2 + [ x2 =] ((0.0 * x1) + 3.0)"
38+ @test string_tree (assign_expr_reverse) == " x2 + ( x2 ← ((0.0 * x1) + 3.0) )"
3939 result, completed = eval_tree_array (assign_expr_reverse, X)
4040 @test completed == true
4141 @test result == [3.5 , 4.5 , 5.5 ]
5858 x3 = Expression (Node (; feature= 3 ); operators, variable_names)
5959
6060 expr = assign_x1 (assign_x1 (x1 * 2 ) + x1)
61- @test string_tree (expr) == " [a =]([a =] (a * 2.0) + a)"
61+ @test string_tree (expr) == " a ← ((a ← (a * 2.0) ) + a)"
6262
6363 result, completed = eval_tree_array (expr, X)
6464 @test completed == true
122122 x2 = Expression (Node (; feature= 2 ); operators, variable_names)
123123 expr = while_op (3.0 - x2, assign_x2 (x2 + 1.0 ))
124124
125- @test string_tree (expr) == " while(3.0 - x2, [ x2 =] (x2 + 1.0))"
125+ @test string_tree (expr) == " while(3.0 - x2, x2 ← (x2 + 1.0))"
126126
127127 result, completed = eval_tree_array (expr, X)
128128 @test completed == true
163163 expr = (while_op (condition, body) * 0.0 ) + xs[3 ]
164164
165165 @test string_tree (expr) ==
166- " (while(x2, (([ x5 =] (x3) + [ x3 =] (x4)) + [ x4 =] (x5 + x4)) + [ x2 =] (x2 - 1.0)) * 0.0) + x3"
166+ " (while(x2, ((( x5 ← (x3)) + ( x3 ← (x4))) + ( x4 ← (x5 + x4))) + ( x2 ← (x2 - 1.0) )) * 0.0) + x3"
167167
168168 result, completed = eval_tree_array (expr, X)
169169 @test completed == true
0 commit comments