Skip to content

Commit

Permalink
Fixed incorrect type in test
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Nov 29, 2023
1 parent f5e6b3c commit 2486cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/kpoints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
@test hash(KPoint(0, 0, 0, weight = 1)) != hash(KPoint(0, 0, 0, weight = 2))
@test zero(ShiftVector{Electrum.ByRealSpace,3}) != zero(KPoint{3})
@test zero(KPoint{3,Float32}) == zero(KPoint{3,Int})
# Constructors
# Constructors and zero k-point
@test zero(KPoint{3}) === zero(KPoint{3,Bool})
@test zero(KPoint{3}) === KPoint(false, false, false; weight = true)
@test zero(KPoint{3,Int}) === KPoint(0, 0, 0, weight = 1)
@test zero(KPoint{3,Int}) === KPoint(SVector{3}(0, 0, 0), 1)
@test zero(KPoint{3,Float64}) === KPoint{3}(SVector{3}(0, 0, 0), 1.0)
@test zero(KPoint{3,Float32}) === KPoint{3,Float32}(SVector{3}(0, 0, 0), 1.0)
@test zero(KPoint{3,Float64}) === KPoint{3}([0, 0, 0], 1.0)
@test zero(KPoint{3,Float32}) === KPoint{3,Float64}([0, 0, 0], 1.0)
@test zero(KPoint{3,Float32}) === KPoint{3,Float32}([0, 0, 0], 1.0)
@test_throws Exception KPoint(SMatrix{3,1}([0, 0, 0]))
@test_throws Exception KPoint{3}(SMatrix{3,1}([0, 0, 0]))
@test_throws Exception KPoint{3,Int}(SMatrix{3,1}([0, 0, 0]))
Expand Down

0 comments on commit 2486cc9

Please sign in to comment.