Skip to content

Commit c8cf84a

Browse files
NFC tweak to MPSMatrixCopy tests (#439)
1 parent 6f2269e commit c8cf84a

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

test/mps/copy.jl

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,19 @@ end
3030

3131
@testset "MPSMatrixCopy" begin
3232
Ts = collect(values(MPS.jl_mps_to_typ))
33-
Ts = Ts[.!(Ts .<: IGNORE_UNION)]
34-
@testset "$T" for T in Ts
35-
for dim in ((16,16), (10,500), (500,10), (256,512))
36-
srcMat = MtlArray(rand(T, dim))
33+
@testset "$T: $dim" for T in Ts, dim in ((16,16), (10,500), (500,10), (256,512))
34+
srcMat = MtlArray(rand(T, dim))
3735

38-
dstMat = copytest(srcMat, false, false)
39-
@test dstMat == srcMat
36+
dstMat = copytest(srcMat, false, false)
37+
@test dstMat == srcMat broken=(T <: IGNORE_UNION)
4038

41-
dstMat = copytest(srcMat, true, false)
42-
@test dstMat == srcMat'
39+
dstMat = copytest(srcMat, true, false)
40+
@test dstMat == srcMat' broken=(T <: IGNORE_UNION)
4341

44-
dstMat = copytest(srcMat, false, true)
45-
@test dstMat == srcMat'
42+
dstMat = copytest(srcMat, false, true)
43+
@test dstMat == srcMat' broken=(T <: IGNORE_UNION)
4644

47-
dstMat = copytest(srcMat, true, true)
48-
@test dstMat == srcMat
49-
end
45+
dstMat = copytest(srcMat, true, true)
46+
@test dstMat == srcMat broken=(T <: IGNORE_UNION)
5047
end
5148
end

0 commit comments

Comments
 (0)