Skip to content

Commit

Permalink
errorshow: Add test for hint when + is attempted on AbstractStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
merryhime committed Jul 10, 2022
1 parent cb1c867 commit 748c0e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/errorshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 748c0e5

Please sign in to comment.