Skip to content

Commit e883422

Browse files
committed
Change elty2 and eltyB loop bounds
1 parent bd03267 commit e883422

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/testtriag.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,12 @@ function test_triangular(elty1_types)
314314
@test ((A1 \ A1)::t1) M1 \ M1
315315

316316
# Begin loop for second Triangular matrix
317-
@testset for elty2 in (Float32, Float64, BigFloat, ComplexF32, ComplexF64, Complex{BigFloat}, Int)
317+
@testset for elty2 in push!(Set((ComplexF32, Int)), elty1)
318318
# Only test methods for the same element type and a single combination of mixed element types
319319
# to avoid too much compilation
320-
if !(elty1 == elty2 || (elty1 (ComplexF32, Int) && elty2 (ComplexF32, Int)))
320+
if elty1 (elty2, ComplexF32, Int)
321321
continue
322322
end
323-
@show elty1, elty2
324323
@testset for (t2, uplo2) in ((UpperTriangular, :U),
325324
(UnitUpperTriangular, :U),
326325
(LowerTriangular, :L),
@@ -410,10 +409,10 @@ function test_triangular(elty1_types)
410409
end
411410
end
412411

413-
@testset for eltyB in (Float32, Float64, BigFloat, ComplexF32, ComplexF64, Complex{BigFloat})
412+
@testset for eltyB in push!(Set((ComplexF32,)), elty1)
414413
# Only test methods for the same element type and a single combination of mixed element types
415414
# to avoid too much compilation
416-
if !(elty1 == eltyB || (elty1 (ComplexF32, Int) && eltyB (ComplexF32, Int)))
415+
if elty1 (eltyB, ComplexF32, Int)
417416
continue
418417
end
419418

0 commit comments

Comments
 (0)