Skip to content

Commit 00fce54

Browse files
committed
Force UnallocatedFill and Zeros to use constructor stack
1 parent c1499c0 commit 00fce54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NDTensors/src/lib/UnallocatedArrays/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using .NDTensorsTestUtils: devices_list
3535
Zs = similar(Z)
3636
@test Zs isa alloctype(Z)
3737

38-
Z = UnallocatedZeros(z, dev(Array))
38+
Z = UnallocatedZeros{elt}(z, dev(Array))
3939
Za = allocate(Z)
4040
@test Za isa dev(Array{elt,2})
4141
@test Za[1, 3] == zero(elt)
@@ -73,7 +73,7 @@ using .NDTensorsTestUtils: devices_list
7373
Fc[2, 3, 4] = elt(0)
7474
@test iszero(Fc[2, 3, 4])
7575

76-
F = UnallocatedFill(f, dev(Array))
76+
F = UnallocatedFill{elt}(f, dev(Array))
7777
Fa = allocate(F)
7878
@test Fa isa dev(Array{elt,3})
7979
@test Fa[2, 1, 4] == elt(3)

0 commit comments

Comments
 (0)