Skip to content

Commit 1dc9c65

Browse files
committed
fix test
1 parent d3a231e commit 1dc9c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/kronecker.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ using Test, LinearMaps, LinearAlgebra, SparseArrays
4242
@test kron(A, A, A) Matrix(@inferred kron(LA, LA, LA)) Matrix(@inferred LA^⊗(3)) Matrix(@inferred A^⊗(3))
4343
LAs = LinearMap(sparse(A))
4444
K = @inferred kron(A, A, A, LAs)
45-
@inferred squarekron(A, A, LAs)
45+
VERSION > v"1.7" && @inferred squarekron(A, A, LAs)
4646
K2 = squarekron(A, A, A, LAs)
4747
@test K isa LinearMaps.KroneckerMap
48-
@test Matrix(K) Matrix(K2) kron(A, A, A)
48+
@test Matrix(K) Matrix(K2) kron(A, A, A, A)
4949
@test convert(AbstractMatrix, K) isa SparseMatrixCSC
5050
@test convert(AbstractMatrix, K) kron(A, A, A, A)
5151
@test sparse(K) kron(A, A, A, A)

0 commit comments

Comments
 (0)