@@ -11,9 +11,9 @@ spacelist = try
1111 if get (ENV , " CI" , " false" ) == " true"
1212 println (" Detected running on CI" )
1313 if Sys. iswindows ()
14- (Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂, VIB_diag, VIB_M )
14+ (Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂, VIB_diag)
1515 elseif Sys. isapple ()
16- (Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VfU₁, VfSU₂, VSU₂U₁, VIB_diag, VIB_M) # , VSU₃)
16+ (Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VfU₁, VfSU₂, VSU₂U₁, VIB_M) # , VSU₃)
1717 else
1818 (Vtr, Vℤ₂, Vfℤ₂, VU₁, VCU₁, VSU₂, VfSU₂, VSU₂U₁, VIB_diag, VIB_M) # , VSU₃)
1919 end
2727for V in spacelist
2828 I = sectortype (first (V))
2929 Istr = type_repr (I)
30- symmetricbraiding = isa ( BraidingStyle (I), SymmetricBraiding)
30+ symmetricbraiding = BraidingStyle (I) isa SymmetricBraiding
3131 println (" ---------------------------------------" )
3232 println (" Tensors with symmetry: $Istr " )
3333 println (" ---------------------------------------" )
@@ -137,7 +137,7 @@ for V in spacelist
137137 @test dot (t2, t) ≈ conj (dot (t2' , t' ))
138138 @test dot (t2, t) ≈ dot (t' , t2' )
139139
140- if isa ( UnitStyle (I), SimpleUnit) || ! isempty (blocksectors (V2 ⊗ V1))
140+ if UnitStyle (I) isa SimpleUnit || ! isempty (blocksectors (V2 ⊗ V1))
141141 i1 = @constinferred (isomorphism (T, V1 ⊗ V2, V2 ⊗ V1)) # can't reverse fusion here when modules are involved
142142 i2 = @constinferred (isomorphism (Vector{T}, V2 ⊗ V1, V1 ⊗ V2))
143143 @test i1 * i2 == @constinferred (id (T, V1 ⊗ V2))
@@ -329,7 +329,7 @@ for V in spacelist
329329 end
330330 end
331331 # TODO : find version that works for all multifusion cases
332- ( UnitStyle (I) == SimpleUnit ()) && @timedtestset " Trace and contraction" begin
332+ symmetricbraiding && @timedtestset " Trace and contraction" begin
333333 t1 = rand (ComplexF64, V1 ⊗ V2 ⊗ V3)
334334 t2 = rand (ComplexF64, V2' ⊗ V4 ⊗ V1' )
335335 t3 = t1 ⊗ t2
@@ -354,7 +354,7 @@ for V in spacelist
354354 @test HrA12array ≈ convert (Array, HrA12)
355355 end
356356 end
357- (BraidingStyle (I) != NoBraiding () ) && @timedtestset " Index flipping: test flipping inverse" begin
357+ (BraidingStyle (I) isa HasBraiding ) && @timedtestset " Index flipping: test flipping inverse" begin
358358 t = rand (ComplexF64, V1 ⊗ V1' ← V1' ⊗ V1)
359359 for i in 1 : 4
360360 @test t ≈ flip (flip (t, i), i; inv = true )
@@ -533,7 +533,7 @@ for V in spacelist
533533 end
534534 @timedtestset " Tensor product: test via norm preservation" begin
535535 for T in (Float32, ComplexF64)
536- if isa ( UnitStyle (I), SimpleUnit) || ! isempty (blocksectors (V2 ⊗ V1))
536+ if UnitStyle (I) isa SimpleUnit || ! isempty (blocksectors (V2 ⊗ V1))
537537 t1 = rand (T, V2 ⊗ V3 ⊗ V1, V1 ⊗ V2)
538538 t2 = rand (T, V2 ⊗ V1 ⊗ V3, V1 ⊗ V1)
539539 else
@@ -572,7 +572,7 @@ for V in spacelist
572572 end
573573 @timedtestset " Tensor absorption" begin
574574 # absorbing small into large
575- if isa ( UnitStyle (I), SimpleUnit) || ! isempty (blocksectors (V2 ⊗ V3))
575+ if UnitStyle (I) isa SimpleUnit || ! isempty (blocksectors (V2 ⊗ V3))
576576 t1 = zeros (V1 ⊕ V1, V2 ⊗ V3)
577577 t2 = rand (V1, V2 ⊗ V3)
578578 else
@@ -587,7 +587,7 @@ for V in spacelist
587587 @test t3 ≈ t4
588588
589589 # absorbing large into small
590- if isa ( UnitStyle (I), SimpleUnit) || ! isempty (blocksectors (V2 ⊗ V3))
590+ if UnitStyle (I) isa SimpleUnit || ! isempty (blocksectors (V2 ⊗ V3))
591591 t1 = rand (V1 ⊕ V1, V2 ⊗ V3)
592592 t2 = zeros (V1, V2 ⊗ V3)
593593 else
0 commit comments