Skip to content

Commit a90338b

Browse files
committed
Fix tests
1 parent 5426183 commit a90338b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ DiagonalArrays = "0.3"
3131
GPUArraysCore = "0.2"
3232
JLArrays = "0.2"
3333
LinearAlgebra = "1"
34-
MatrixAlgebraKit = "0.2.5, 0.3, 0.4"
34+
MatrixAlgebraKit = "0.4"
3535
Random = "1"
3636
SafeTestsets = "0.1"
3737
SparseArraysBase = "0.7"

test/test_factorizations.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ end
230230
@test (V1ᴴ * V1ᴴ' LinearAlgebra.I)
231231

232232
atol = minimum(LinearAlgebra.diag(S1)) + 10 * eps(real(T))
233-
trunc = trunctol(atol)
233+
trunc = trunctol(; atol)
234234

235235
U1, S1, V1ᴴ = svd_trunc(a; trunc)
236236
U2, S2, V2ᴴ = svd_trunc(Matrix(a); trunc)
@@ -246,7 +246,7 @@ end
246246
rng = StableRNG(123)
247247
perm = Random.randperm(rng, length(m))
248248
b = a[Block.(perm), Block.(1:length(n))]
249-
for trunc in (truncrank(r), trunctol(atol))
249+
for trunc in (truncrank(r), trunctol(; atol))
250250
U1, S1, V1ᴴ = svd_trunc(b; trunc)
251251
U2, S2, V2ᴴ = svd_trunc(Matrix(b); trunc)
252252
@test size(U1) == size(U2)
@@ -262,7 +262,7 @@ end
262262
I_removed = rand(eachblockstoredindex(b))
263263
c = copy(b)
264264
delete!(blocks(c).storage, CartesianIndex(Int.(Tuple(I_removed))))
265-
for trunc in (truncrank(r), trunctol(atol))
265+
for trunc in (truncrank(r), trunctol(; atol))
266266
U1, S1, V1ᴴ = svd_trunc(c; trunc)
267267
U2, S2, V2ᴴ = svd_trunc(Matrix(c); trunc)
268268
@test size(U1) == size(U2)

0 commit comments

Comments
 (0)