Skip to content

Commit 6fda7c5

Browse files
committed
Fix tree construction inside test set
1 parent efe65c0 commit 6fda7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_tensor_operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tree = Node(1, Node(1, c1), x1)
3838
# Also test mixed scalar and floats:
3939
c2 = Node(T; val=2.0)
4040
@test repr(c2) == "2.0"
41-
tree = vec_add(vec_add(c1, x1), c2)
41+
tree = Node(1, Node(1, c1, x1), c2)
4242
@test repr(tree) == "vec_add(vec_add([1.0, 2.0, 3.0], x1), 2.0)"
4343
tree(X)
4444
@test tree(X) == [5.0, 6.0, 7.0]

0 commit comments

Comments
 (0)