From a28dc6be964955fd1b06b232c46e9dffb0cae25d Mon Sep 17 00:00:00 2001 From: Bernd Hofmann Date: Sun, 6 Nov 2022 22:14:03 +0100 Subject: [PATCH] update ErrorException in tests --- test/sphericalModes.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sphericalModes.jl b/test/sphericalModes.jl index 37b3b60..5db1e92 100644 --- a/test/sphericalModes.jl +++ b/test/sphericalModes.jl @@ -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 @@ -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