Skip to content

Commit

Permalink
Merge pull request #33 from invenia/cv/fix-0.7-test
Browse files Browse the repository at this point in the history
Fix test failure on Julia 0.7
  • Loading branch information
omus authored Dec 16, 2017
2 parents 07b967f + 410a20b commit 742aeca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/patch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ end
end

@testset "assertion expression" begin
p = @patch f(t::typeof(cos)) = nothing
@test p.signature == :(f(t::typeof(Base.MPFR.cos)))
@test p.modules == Set([:(Base.MPFR)])
p = @patch f(t::typeof(+)) = nothing
@test p.signature == :(f(t::typeof(Base.:+)))
@test p.modules == Set([:Base])
expected = quote
import Base.MPFR
f(t::typeof(Base.MPFR.cos)) = $(p.body)(t)
import Base
f(t::typeof(Base.:+)) = $(p.body)(t)
end
@test Mocking.convert(Expr, p) == strip_lineno!(expected)
end
Expand Down

0 comments on commit 742aeca

Please sign in to comment.