Skip to content

Commit

Permalink
🚑 restrict versions copy! test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielStock committed Oct 24, 2023
1 parent 5791ba2 commit 4a86d56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions test/testbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@

@test similar(K) isa AbstractKroneckerProduct

Kcopy = similar(A) similar(B)
@test_nowarn copy!(Kcopy, K)
@test Kcopy K
if VERSION v"1.1"
Kcopy = similar(A) similar(B)
@test_nowarn copy!(Kcopy, K)
@test Kcopy K
end
end

@testset "Using vectors" begin
Expand Down
8 changes: 5 additions & 3 deletions test/testkroneckersum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@

@test similar(KS) isa KroneckerSum

KScopy = similar(A) similar(B)
@test_nowarn copy!(KScopy, KS)
@test KScopy KS
if VERSION v"1.1"
KScopy = similar(A) similar(B)
@test_nowarn copy!(KScopy, KS)
@test KScopy KS
end

IC = oneunit(C)
KS3 = A B C
Expand Down

0 comments on commit 4a86d56

Please sign in to comment.