We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbe5db8 commit f3db760Copy full SHA for f3db760
src/testsuite/io.jl
@@ -2,15 +2,17 @@ function test_io(AT)
2
@testset "input/output" begin
3
@testset "showing" begin
4
io = IOBuffer()
5
- A = AT([1])
+ A = AT(Int64[1])
6
7
show(io, MIME("text/plain"), A)
8
seekstart(io)
9
@test String(take!(io)) == "1-element $AT{Int64,1}:\n 1"
10
11
show(io, MIME("text/plain"), A')
12
13
- @test String(take!(io)) == "1×1 LinearAlgebra.Adjoint{Int64,$AT{Int64,1}}:\n 1"
+ msg = String(take!(io)) # the printing of Adjoint depends on global state
14
+ @test msg == "1×1 Adjoint{Int64,$AT{Int64,1}}:\n 1" ||
15
+ msg == "1×1 LinearAlgebra.Adjoint{Int64,$AT{Int64,1}}:\n 1"
16
end
17
18
0 commit comments