@@ -284,14 +284,14 @@ function eval_test(evaluated::Expr, quoted::Expr, source::LineNumberNode, negate
284
284
285
285
elseif evaluated. head === :call
286
286
op = evaled_args[1 ]
287
- kwargs = evaled_args[2 ]. args # Keyword arguments from `Expr(:parameters, ...)`
287
+ kwargs = ( evaled_args[2 ]:: Expr ) . args # Keyword arguments from `Expr(:parameters, ...)`
288
288
args = evaled_args[3 : n]
289
289
290
290
res = op (args... ; kwargs... )
291
291
292
292
# Create "Evaluated" expression which looks like the original call but has all of
293
293
# the arguments evaluated
294
- func_sym = quoted_args[1 ]
294
+ func_sym = quoted_args[1 ]:: Union{Symbol,Expr}
295
295
if isempty (kwargs)
296
296
quoted = Expr (:call , func_sym, args... )
297
297
elseif func_sym === :≈ && ! res
@@ -312,7 +312,7 @@ function eval_test(evaluated::Expr, quoted::Expr, source::LineNumberNode, negate
312
312
313
313
Returned (res,
314
314
# stringify arguments in case of failure, for easy remote printing
315
- res === true ? quoted : sprint (io -> print ( IOContext (io, :limit => true ), quoted)) * kw_suffix,
315
+ res === true ? quoted : sprint (print, quoted, context = ( :limit => true )) * kw_suffix,
316
316
source)
317
317
end
318
318
@@ -758,7 +758,7 @@ struct FallbackTestSet <: AbstractTestSet end
758
758
fallback_testset = FallbackTestSet ()
759
759
760
760
struct FallbackTestSetException <: Exception
761
- msg:: AbstractString
761
+ msg:: String
762
762
end
763
763
764
764
function Base. showerror (io:: IO , ex:: FallbackTestSetException , bt; backtrace= true )
@@ -785,13 +785,13 @@ are any `Fail`s or `Error`s, an exception will be thrown only at the end,
785
785
along with a summary of the test results.
786
786
"""
787
787
mutable struct DefaultTestSet <: AbstractTestSet
788
- description:: AbstractString
789
- results:: Vector
788
+ description:: String
789
+ results:: Vector{Any}
790
790
n_passed:: Int
791
791
anynonpass:: Bool
792
792
verbose:: Bool
793
793
end
794
- DefaultTestSet (desc; verbose = false ) = DefaultTestSet (desc, [], 0 , false , verbose)
794
+ DefaultTestSet (desc:: AbstractString ; verbose:: Bool = false ) = DefaultTestSet (String ( desc) :: String , [], 0 , false , verbose)
795
795
796
796
# For a broken result, simply store the result
797
797
record (ts:: DefaultTestSet , t:: Broken ) = (push! (ts. results, t); t)
@@ -1462,7 +1462,7 @@ want to set this to `false`. See [`Base.isambiguous`](@ref).
1462
1462
function detect_ambiguities (mods... ;
1463
1463
recursive:: Bool = false ,
1464
1464
ambiguous_bottom:: Bool = false )
1465
- @nospecialize mods
1465
+ @nospecialize
1466
1466
ambs = Set {Tuple{Method,Method}} ()
1467
1467
mods = collect (mods):: Vector{Module}
1468
1468
function sortdefs (m1:: Method , m2:: Method )
0 commit comments