Skip to content

Commit

Permalink
Non-integer multiplicity arguments throw an InexactError
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Nov 16, 2023
1 parent d76b83e commit 0567037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
@test Multiplicity(1.0) === Multiplicity{1}()
@test_throws AssertionError Multiplicity{0}()
@test_throws AssertionError Multiplicity(0)
@test_throws AssertionError Multiplicity{1/2}()
@test_throws AssertionError Multiplicity(1/2)
@test_throws InexactError Multiplicity{1/2}()
@test_throws InexactError Multiplicity(1/2)
end

0 comments on commit 0567037

Please sign in to comment.