From c91eff407be2b3b640339402d18e5a931e3ec415 Mon Sep 17 00:00:00 2001 From: Lyndon White Date: Sun, 29 Nov 2020 19:31:09 +0000 Subject: [PATCH] Relax print tests (#476) * Relax print tests * Kristoffer's suggestion * Don't test with Int32s * Make it a tuple Co-authored-by: Andreas Noack --- test/PartialsTest.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/PartialsTest.jl b/test/PartialsTest.jl index dfd7e5a1..39fb05d7 100644 --- a/test/PartialsTest.jl +++ b/test/PartialsTest.jl @@ -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