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 c6dd4a6 commit 6f376eeCopy full SHA for 6f376ee
src/testsuite/io.jl
@@ -12,15 +12,19 @@ function test_io(AT)
12
13
show(io, A)
14
seekstart(io)
15
- @test String(take!(io)) == "[1]"
+ msg = String(take!(io)) # result of e.g. `print` differs on 32bit and 64bit machines
16
+ # due to different definition of `Int` type
17
+ # print([1]) shows as [1] on 64bit but Int64[1] on 32bit
18
+ @test msg == "[1]" || msg == "Int64[1]"
19
20
show(io, MIME("text/plain"), B)
21
22
@test String(take!(io)) == "2×2 $AT{Int64,2}:\n 1 2\n 3 4"
23
24
show(io, B)
25
- @test String(take!(io)) == "[1 2; 3 4]"
26
+ msg = String(take!(io))
27
+ @test msg == "[1 2; 3 4]" || msg == "Int64[1 2; 3 4]"
28
29
show(io, MIME("text/plain"), A')
30
0 commit comments