Skip to content

Commit cba7ec0

Browse files
committed
test: fix check alloc overwrite
1 parent 6044bc3 commit cba7ec0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_array_node.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ end
183183
result = eval_tree_array(tree, X, operators)
184184

185185
# Test that evaluation doesn't allocate
186-
@check_allocs eval_tree_array(tree, X, operators) = eval_tree_array(tree, X, operators)
186+
@check_allocs check_eval(t, x, ops) = eval_tree_array(t, x, ops)
187+
check_eval(tree, X, operators)
187188

188189
# Test that property access doesn't allocate
189190
@check_allocs get_degree(n) = n.degree

0 commit comments

Comments
 (0)