Skip to content

Commit

Permalink
Added tests for methodshow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Nov 9, 2015
1 parent 86cb6e8 commit 7498069
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,15 @@ function f13127()
end
@test f13127() == "f"

#test methodshow.jl functions
@test Base.inbase(Base)
@test Base.inbase(LinAlg)

@test contains(sprint(io -> writemime(io,"text/plain",methods(Base.inbase))),"inbase(m::Module)")
@test contains(sprint(io -> writemime(io,"text/html",methods(Base.inbase))),"inbase(m::<b>Module</b>)")

@test contains(Base.url(methods(eigs).defs),"https://github.com/JuliaLang/julia/tree/$(Base.GIT_VERSION_INFO.commit)/base/linalg/arnoldi.jl#L")

# print_matrix should be able to handle small and large objects easily, test by
# calling writemime. This also indirectly tests print_matrix_row, which
# is used repeatedly by print_matrix.
Expand Down

0 comments on commit 7498069

Please sign in to comment.