Skip to content

Commit d006c82

Browse files
committed
Narrow 1.0 exclusion
1 parent 4c770c4 commit d006c82

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/left.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ using LinearAlgebra: mul!
33

44
# y'*L is an exception to the left multiplication rule that makes a WrappedMap
55

6-
@static if true # VERSION ≥ v"1.4.0"
76

87
function left_tester(L::LinearMap{T}) where {T}
98
M,N = size(L)
@@ -27,10 +26,12 @@ function left_tester(L::LinearMap{T}) where {T}
2726

2827
b1 = transpose(y) * A
2928
b2 = similar(b1)
30-
mul!(b2, transpose(y), L) # 3-arg
29+
@static if VERSION v"1.4.0"
30+
mul!(b2, transpose(y), L) # 3-arg # todo: fails in Julia 1.0
3131
@test b1 b2
3232
mul!(b2, transpose(y), L, true, false) # 5-arg
3333
@test b1 b2
34+
end # version
3435

3536
true
3637
end
@@ -51,5 +52,3 @@ end
5152
W = LinearMap(randn(T,5,4))
5253
@test left_tester(W) # WrappedMap
5354
end
54-
55-
end # version

0 commit comments

Comments
 (0)