Skip to content

Commit

Permalink
Fix botched inferrability test
Browse files Browse the repository at this point in the history
Added in #338
  • Loading branch information
timholy committed Jan 2, 2021
1 parent ea824ad commit c8df94d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ end
@test @inferred(width(surf)) == 100
@test @inferred(height(surf)) == 200
abstractsurf = Ref{CairoSurface}(surf)
@test @inferred(width(abstractsurf[])) == 100
@test @inferred(height(abstractsurf[])) == 200
getwidth(r) = width(r[])
getheight(r) = height(r[])
@test @inferred(getwidth(abstractsurf)) == 100
@test @inferred(getheight(abstractsurf)) == 200
ctx = CairoContext(surf)
@test @inferred(width(ctx)) == 100
@test @inferred(height(ctx)) == 200
Expand Down

0 comments on commit c8df94d

Please sign in to comment.