Skip to content

Commit 15910c4

Browse files
committed
errorshow: Add test for hint when + is attempted on AbstractStrings
1 parent 9bf97ef commit 15910c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/errorshow.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,3 +928,8 @@ for (expr, errmsg) in
928928
end
929929
@test contains(sprint(showerror, err), errmsg)
930930
end
931+
932+
let err_str
933+
err_str = @except_str "a" + "b" MethodError
934+
@test occursin("String concatenation is performed with *", err_str)
935+
end

0 commit comments

Comments
 (0)