Skip to content

Commit 28e6ca5

Browse files
committed
Try fixing tests
1 parent f58048f commit 28e6ca5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NDTensors/test/test_dense.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ NDTensors.dim(i::MyInd) = i.dim
3838

3939
Aview = A[2:3, 2:3]
4040
@test dims(Aview) == (2, 2)
41-
## Added for issue 1431 create a tensor from
41+
## Added for issue 1431 create a tensor from
4242
## a sliced view of another tensor
4343
Acopy = Tensor(NDTensors.storage(Aview), (1, 4))
4444
@test NDTensors.cpu(data(Acopy)) == NDTensors.cpu(data(Aview))
@@ -233,7 +233,7 @@ NDTensors.dim(i::MyInd) = i.dim
233233
@testset "Contraction with size 1 block and NaN" begin
234234
@testset "No permutation" begin
235235
R = dev(Tensor(complex(elt), (2, 2, 1)))
236-
fill!(R, NaN)
236+
fill!(R, elt(NaN))
237237
@test @allowscalar any(isnan, R)
238238
T1 = dev(randomTensor(elt, (2, 2, 1)))
239239
T2 = dev(randomTensor(complex(elt), (1, 1)))
@@ -244,7 +244,7 @@ NDTensors.dim(i::MyInd) = i.dim
244244

245245
@testset "Permutation" begin
246246
R = dev(Tensor(complex(elt), (2, 2, 1)))
247-
fill!(R, NaN)
247+
fill!(R, elt(NaN))
248248
@test @allowscalar any(isnan, R)
249249
T1 = dev(randomTensor(elt, (2, 2, 1)))
250250
T2 = dev(randomTensor(complex(elt), (1, 1)))

0 commit comments

Comments
 (0)