Skip to content

Commit c91eff4

Browse files
Relax print tests (#476)
* Relax print tests * Kristoffer's suggestion * Don't test with Int32s * Make it a tuple Co-authored-by: Andreas Noack <[email protected]>
1 parent 9244e39 commit c91eff4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/PartialsTest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ end
137137

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

142143
end # module

0 commit comments

Comments
 (0)