Skip to content

Commit

Permalink
Relax print tests (#476)
Browse files Browse the repository at this point in the history
* Relax print tests

* Kristoffer's suggestion

* Don't test with Int32s

* Make it a tuple

Co-authored-by: Andreas Noack <[email protected]>
  • Loading branch information
oxinabox and andreasnoack authored Nov 29, 2020
1 parent 9244e39 commit c91eff4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/PartialsTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ end

io = IOBuffer()
show(io, MIME("text/plain"), Partials((1, 2, 3)))
@test String(take!(io)) == "3-element ForwardDiff.Partials{3,$Int}:\n 1\n 2\n 3"
str = String(take!(io))
@test str == "3-element $(ForwardDiff.Partials{3,Int}):\n 1\n 2\n 3"

end # module

0 comments on commit c91eff4

Please sign in to comment.