Skip to content

Commit a28dc6b

Browse files
committed
update ErrorException in tests
1 parent bfb03f0 commit a28dc6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/sphericalModes.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

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

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

3232
# @test FF[1][1] ≈ 295.0240872654143 + 112.00825545163434im
3333
# @test FF[1][2] ≈ 295.0240872654143 + 112.00825545163434im
@@ -110,8 +110,8 @@ end
110110

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

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

116116
# @test FF[1][1] ≈ 295.0240872654143 + 112.00825545163434im
117117
# @test FF[1][2] ≈ 295.0240872654143 + 112.00825545163434im

0 commit comments

Comments
 (0)