From 748c0e5bc52c1b4fd1807f8eadd20a163ba0f55d Mon Sep 17 00:00:00 2001 From: Merry Date: Sat, 9 Jul 2022 15:45:39 +0100 Subject: [PATCH] errorshow: Add test for hint when + is attempted on AbstractStrings --- test/errorshow.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/errorshow.jl b/test/errorshow.jl index a05a86a7972341..06a27bcb3639e6 100644 --- a/test/errorshow.jl +++ b/test/errorshow.jl @@ -928,3 +928,8 @@ for (expr, errmsg) in end @test contains(sprint(showerror, err), errmsg) end + +let err_str + err_str = @except_str "a" + "b" MethodError + @test occursin("String concatenation is performed with *", err_str) +end