Skip to content

Commit

Permalink
Fixed more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apaz-cli authored and maleadt committed Nov 18, 2022
1 parent dc4d8a1 commit 924f790
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stdlib/Test/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ let errors = @testset NoThrowTestSet begin

let str = sprint(show, errors[2])
@test occursin("Expression: ==(1, 1:2...)", str)
@test occursin("MethodError: no method matching ==(::$Int, ::$Int, ::$Int)", str)
@test occursin("MethodError: no method matching for call to ==(::$Int, ::$Int, ::$Int)", str)
end

let str = sprint(show, errors[3])
Expand Down
2 changes: 1 addition & 1 deletion test/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ end
f44319(1)
catch e
s = sprint(showerror, e)
@test s == "MethodError: no method matching f44319(::Int$(Sys.WORD_SIZE))\n\nClosest candidates are:\n f44319()\n @ $curmod_str none:0\n"
@test s == "MethodError: no method matching for call to f44319(::Int$(Sys.WORD_SIZE))\n\nClosest candidates are:\n f44319()\n @ $curmod_str none:0\n"
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/worlds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ let ex = t265.exception
str = sprint(showerror, ex)
wc = get_world_counter()
cmps = """
MethodError: no method matching h265()
MethodError: no method matching for call to h265()
The applicable method may be too new: running in world age $wc265, while current world is $wc."""
@test startswith(str, cmps)
cmps = "\n h265() (method too new to be called from this world context.)\n $loc_h265"
Expand Down

0 comments on commit 924f790

Please sign in to comment.