We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab348ed commit c45320bCopy full SHA for c45320b
src/InlineTest.jl
@@ -14,9 +14,9 @@ end
14
15
function addtest(args::Tuple, m::Module)
16
n = findfirst(a -> a isa String, args)
17
- desc = n == nothing ? nothing : args[n]
18
- desc != nothing && haskey(tests(m), desc) && @warn("Test $desc already defined for module $(string(m)), overwriting")
19
- if desc == nothing
+ desc = n === nothing ? nothing : args[n]
+ desc !== nothing && haskey(tests(m), desc) && @warn("Test $desc already defined for module $(string(m)), overwriting")
+ if desc === nothing
20
i = 1
21
while haskey(tests(m), "anonymous test $i")
22
i += 1
0 commit comments