Skip to content

Commit

Permalink
Merge pull request #26283 from JuliaLang/aa/isfound
Browse files Browse the repository at this point in the history
Deprecate contains to occursin, deprecate callable regexes
  • Loading branch information
JeffBezanson authored Mar 20, 2018
2 parents ee8086b + 52963fd commit 8ef80db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ let thrown = false
thrown = true
local b = IOBuffer()
showerror(b, e)
@test contains(String(take!(b)), "sqrt will only return")
@test occursin("sqrt will only return", String(take!(b)))
end
@test thrown
end
Expand Down Expand Up @@ -1375,7 +1375,7 @@ try
error("unexpected")
catch ex
@test isa(ex.captured.ex.exceptions[1].ex, ErrorException)
@test contains(ex.captured.ex.exceptions[1].ex.msg, "BoundsError")
@test occursin("BoundsError", ex.captured.ex.exceptions[1].ex.msg)
@test ex.captured.ex.exceptions[2].ex == UndefVarError(:DontExistOn1)
end

Expand Down

0 comments on commit 8ef80db

Please sign in to comment.