Skip to content

Commit

Permalink
Fixed (hopefully final) test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Nov 30, 2023
1 parent cccc4e1 commit 1777e86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/spin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ end
@test Electrum._wedge_matrix(sx, sy) == Electrum._wedge_matrix(x, y)
# Properties
@test :data in propertynames(s_z, private = true)
@test only(propertynames(s_z, private = true)) == :matrix
@test only(propertynames(s_z)) == :matrix
# Indexing
@test s_z[1,2] == 1
@test s_z[2] == 1
@test s_z[2,1] == -1
@test s_z[4] == -1
@test s_z[1,2] == 1
@test s_z[2] == -1
@test s_z[4] == 1
# Bad constructor inputs
@test_throws ErrorException SpinBivector(x, y)
@test_throws ErrorException SpinBivector(@SVector [1, 2, 3])
Expand All @@ -58,6 +58,6 @@ end
@test_throws DimensionMismatch SpinBivector(SVector{2}(1, 0), SVector{3}(0, 1, 0))
@test_throws DimensionMismatch SpinBivector{3}([1, 0, 0], [0, 1])
# Traits
@test Electrum.DataSpace(SpinBivector{3}) === ByRealSpace{3}()
@test Electrum.DataSpace(s_z) === ByRealSpace{3}()
@test Electrum.DataSpace(SpinBivector{3}) === Electrum.ByRealSpace{3}()
@test Electrum.DataSpace(s_z) === Electrum.ByRealSpace{3}()
end

0 comments on commit 1777e86

Please sign in to comment.