Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Nov 14, 2024
1 parent d79e3eb commit 64b1541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ end
@test h((1,2)) == h3((1,2))
h = LP.square() |> @hopping((; t=1) -> t) |> supercell((2,0), (0, 1))
= h |> transform(r -> SA[r[2], r[1]])
@test sites(lattice(h´)) == sites(h´.h.lattice) != sites(lattice(parent(h´)))
@test sites(lattice(h´)) == sites(h´.h.lattice) == sites(lattice(parent(h´)))
@test sites(lattice(h´)) == [SA[0,0], SA[0,1]]
h´´ = reverse(h´)
@test bravais_matrix(lattice(h´´)) == - bravais_matrix(lattice(h´))
Expand Down

0 comments on commit 64b1541

Please sign in to comment.