File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
27
27
ex3 = SphericalModeTE (; wavenumber= κ, m= 0 , n= 1 , c= 3 )
28
28
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))
31
31
32
32
# @test FF[1][1] ≈ 295.0240872654143 + 112.00825545163434im
33
33
# @test FF[1][2] ≈ 295.0240872654143 + 112.00825545163434im
110
110
111
111
ex3 = SphericalModeTM (; wavenumber= κ, m= 0 , n= 1 , c= 3 )
112
112
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))
115
115
116
116
# @test FF[1][1] ≈ 295.0240872654143 + 112.00825545163434im
117
117
# @test FF[1][2] ≈ 295.0240872654143 + 112.00825545163434im
You can’t perform that action at this time.
0 commit comments