Skip to content

Commit bd03267

Browse files
committed
Update condition as suggested
1 parent 63aeb4a commit bd03267

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/testtriag.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,10 @@ function test_triangular(elty1_types)
317317
@testset for elty2 in (Float32, Float64, BigFloat, ComplexF32, ComplexF64, Complex{BigFloat}, Int)
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 || (elty1 (ComplexF32, Int) && elty2 (ComplexF32, Int)))
321321
continue
322322
end
323+
@show elty1, elty2
323324
@testset for (t2, uplo2) in ((UpperTriangular, :U),
324325
(UnitUpperTriangular, :U),
325326
(LowerTriangular, :L),
@@ -412,7 +413,7 @@ function test_triangular(elty1_types)
412413
@testset for eltyB in (Float32, Float64, BigFloat, ComplexF32, ComplexF64, Complex{BigFloat})
413414
# Only test methods for the same element type and a single combination of mixed element types
414415
# to avoid too much compilation
415-
if !(elty1 == eltyB || elty1 (ComplexF32, Int) || eltyB (ComplexF32, Int))
416+
if !(elty1 == eltyB || (elty1 (ComplexF32, Int) && eltyB (ComplexF32, Int)))
416417
continue
417418
end
418419

0 commit comments

Comments
 (0)