Skip to content

Commit

Permalink
update ErrorException in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HoBeZwe committed Nov 6, 2022
1 parent bfb03f0 commit a28dc6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/sphericalModes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

ex3 = SphericalModeTE(; wavenumber=κ, m=0, n=1, c=3)

@test_throws "Type can only be 1 or 2." EF = field(ex3, ElectricField(point_cart))
@test_throws "Type can only be 1 or 2." HF = field(ex3, MagneticField(point_cart))
@test_throws ErrorException("Type can only be 1 or 2.") EF = field(ex3, ElectricField(point_cart))
@test_throws ErrorException("Type can only be 1 or 2.") HF = field(ex3, MagneticField(point_cart))

# @test FF[1][1] ≈ 295.0240872654143 + 112.00825545163434im
# @test FF[1][2] ≈ 295.0240872654143 + 112.00825545163434im
Expand Down Expand Up @@ -110,8 +110,8 @@ end

ex3 = SphericalModeTM(; wavenumber=κ, m=0, n=1, c=3)

@test_throws "Type can only be 1 or 2." EF = field(ex3, ElectricField(point_cart))
@test_throws "Type can only be 1 or 2." HF = field(ex3, MagneticField(point_cart))
@test_throws ErrorException("Type can only be 1 or 2.") EF = field(ex3, ElectricField(point_cart))
@test_throws ErrorException("Type can only be 1 or 2.") HF = field(ex3, MagneticField(point_cart))

# @test FF[1][1] ≈ 295.0240872654143 + 112.00825545163434im
# @test FF[1][2] ≈ 295.0240872654143 + 112.00825545163434im
Expand Down

2 comments on commit a28dc6b

@HoBeZwe
Copy link
Owner Author

@HoBeZwe HoBeZwe commented on a28dc6b Nov 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/71769

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" a28dc6be964955fd1b06b232c46e9dffb0cae25d
git push origin v0.2.0

Please sign in to comment.