Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Oct 20, 2023
1 parent e6f590f commit 786bcb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_bandstructure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ end
supercell |> hamiltonian(@onsite!((o; k) -> o + k*I), @hopping!((t; k = 2, p = [1,2])-> t - k*I .+ p'p))
b = bands(ph, mesh2D..., mapping = (k, φ) -> ftuple(; k = k, p = SA[1, φ]), showprogress = false)
@test nsubbands(b) == 1
# multithreading loop throws a CompositeException
@test_throws CompositeException bands(ph, mesh2D..., mapping = (k, φ) -> ftuple(; p = SA[1, φ]), showprogress = false)
# multithreading loop does not throw error
b = bands(ph, mesh2D..., mapping = (k, φ) -> ftuple(; k, p = SA[1, φ]), showprogress = false)
@test nsubbands(b) == 1
end

@testset "spectrum" begin
Expand Down

0 comments on commit 786bcb9

Please sign in to comment.