Skip to content

Commit 5e2fb53

Browse files
committed
Fix tests
1 parent d430d27 commit 5e2fb53

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

test/test_blocksparsearrays.jl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,16 @@ arrayts = (Array, JLArray)
6464
@test_broken inv(a)
6565
end
6666

67+
if arrayt === Array && elt <: Real
68+
u, s, v = svd_compact(a)
69+
@test Array(u * s * v) Array(a)
70+
else
71+
# Broken on GPU and for complex, investigate.
72+
@test_broken svd_compact(a)
73+
end
74+
6775
# Broken operations
6876
@test_broken exp(a)
69-
@test_broken svd_compact(a)
7077
@test_broken a[Block.(1:2), Block(2)]
7178
end
7279

@@ -129,8 +136,12 @@ end
129136
b = @constinferred exp(a)
130137
@test Array(b) exp(Array(a))
131138

139+
u, s, v = svd_compact(a)
140+
@test u * s * v a
141+
@test blocktype(u) === blocktype(a)
142+
@test blocktype(v) === blocktype(a)
143+
132144
# Broken operations
133145
@test_broken inv(a)
134-
@test_broken svd_compact(a)
135146
@test_broken a[Block.(1:2), Block(2)]
136147
end

0 commit comments

Comments
 (0)