Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Dec 8, 2023
1 parent 410a8df commit 5e3601e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions NDTensors/src/lib/UnallocatedArrays/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ using .NDTensorsTestUtils: devices_list
#F2 .+= elt(2.0) ## This is broken
F2 = F2 .+ elt(2.0)
@test F2 isa UnallocatedFill
@test F2[1,1,1] == elt(8.0)
@test F2[1, 1, 1] == elt(8.0)
@test alloctype(F2) == alloctype(F)

F = UnallocatedFill(Fill(elt(2.0), (2,3)), dev(Matrix{elt}))
F = UnallocatedFill(Fill(elt(2.0), (2, 3)), dev(Matrix{elt}))
R = Z + F
@test R isa UnallocatedFill
@test alloctype(R) == alloctype(Z)
Expand Down Expand Up @@ -164,9 +164,8 @@ using .NDTensorsTestUtils: devices_list
R = Z .+ elt(2.0)
@test_broken R isa UnallocatedFill

F = UnallocatedFill(Fill(elt(2),(2,3)), dev(Matrix{elt}))
F = UnallocatedFill(Fill(elt(2), (2, 3)), dev(Matrix{elt}))
R = F + F
@test_broken R isa UnallocatedFill

end
end

0 comments on commit 5e3601e

Please sign in to comment.