Skip to content

Commit

Permalink
Pair IO test
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Nov 11, 2015
1 parent f174d12 commit c829f84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ function f13127()
end
@test f13127() == "f"

let a = Pair(1.0,2.0)
@test sprint(show,a) == "1.0=>2.0"
end
let a = Pair(Pair(1,2),Pair(3,4))
@test sprint(show,a) == "(1=>2)=>(3=>4)"
end

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

0 comments on commit c829f84

Please sign in to comment.