Skip to content

Commit 35e1795

Browse files
committed
Use rtol based on T for issue144 test.
1 parent 39d2a1d commit 35e1795

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/miscellaneous.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,8 +1003,12 @@ end
10031003
@test all(isequal(81), powcseliteral!(E0))
10041004
@test all(isequal(81), powcsesymbol!(E3))
10051005

1006-
@test maybe_const_issue144!(zeros(T, 3,4), (value=one(T),), collect(reshape(1:12, 3,4)), ones(T, 4)) maybe_const_issue144_avx!(zeros(T,3,4), (value=one(T),), collect(reshape(1:12, 3,4)), ones(T,4))
1007-
1006+
1007+
@test isapprox(
1008+
maybe_const_issue144!(zeros(T, 3,4), (value=one(T),), collect(reshape(1:12, 3,4)), ones(T, 4)),
1009+
maybe_const_issue144_avx!(zeros(T,3,4), (value=one(T),), collect(reshape(1:12, 3,4)), ones(T,4)),
1010+
rtol = sqrt(eps(T))
1011+
)
10081012

10091013
end
10101014
for T [Int16, Int32, Int64]

0 commit comments

Comments
 (0)