diff --git a/test/spaces.jl b/test/spaces.jl index 1ec463cc..850dfffe 100644 --- a/test/spaces.jl +++ b/test/spaces.jl @@ -119,9 +119,9 @@ println("------------------------------------") @test @constinferred(oneunit(V)) == W == oneunit(typeof(V)) @test @constinferred(⊕(V, V)) == ℂ^(2d) @test_throws SpaceMismatch (⊕(V, V')) - @test_throws "promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments" (⊕(ℝ^d, + @test_throws ErrorException("promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments") (⊕(ℝ^d, ℂ^d)) - @test_throws "promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments" (⊗(ℝ^d, + @test_throws ErrorException("promotion of types $(typeof(ℝ^d)) and $(typeof(ℂ^d)) failed to change any arguments") (⊗(ℝ^d, ℂ^d)) @test @constinferred(⊕(V, V)) == ℂ^(2d) @test @constinferred(⊕(V, oneunit(V))) == ℂ^(d + 1)