Skip to content

Commit b90dd72

Browse files
committed
Relax an output test.
1 parent 285ba92 commit b90dd72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/testsuite/io.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
B = AT(Int64[1 2;3 4])
1212

1313
msg = replstr(A)
14-
@test occursin(Regex("^1-element $AT{Int64,\\s?1}:\n 1\$"), msg)
14+
@test occursin(Regex("^1-element $AT{Int64,\\s?1.*}:\n 1\$"), msg)
1515

1616
# # result of e.g. `print` differs on 32bit and 64bit machines
1717
# due to different definition of `Int` type
@@ -27,8 +27,8 @@
2727

2828
# the printing of Adjoint depends on global state
2929
msg = replstr(A')
30-
@test occursin(Regex("^1×1 Adjoint{Int64,\\s?$AT{Int64,\\s?1}}:\n 1\$"), msg) ||
31-
occursin(Regex("^1×1 LinearAlgebra.Adjoint{Int64,\\s?$AT{Int64,\\s?1}}:\n 1\$"), msg) ||
32-
occursin(Regex("^1×1 adjoint\\(::$AT{Int64,\\s?1}\\) with eltype Int64:\n 1\$"), msg)
30+
@test occursin(Regex("^1×1 Adjoint{Int64,\\s?$AT{Int64,\\s?1.*}}:\n 1\$"), msg) ||
31+
occursin(Regex("^1×1 LinearAlgebra.Adjoint{Int64,\\s?$AT{Int64,\\s?1.*}}:\n 1\$"), msg) ||
32+
occursin(Regex("^1×1 adjoint\\(::$AT{Int64,\\s?1.*}\\) with eltype Int64:\n 1\$"), msg)
3333
end
3434
end

0 commit comments

Comments
 (0)