Skip to content

Commit 0acf4be

Browse files
committed
Fix broken test (add atol to outer reduct test)
1 parent 95fbf0d commit 0acf4be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/copy.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ using LoopVectorization, OffsetArrays, Test
261261
issue280!(dest, src)
262262
@test dest vcat(view(src,2,:)',view(src,1,:)')
263263
if VERSION v"1.6"
264-
src2 = reinterpret(reshape,R,Vector{Tuple{T,T}}(undef, 17)); src2 .= src;
265-
dest2 = reinterpret(reshape,R,Vector{Tuple{T,T}}(undef, 17));
264+
src2 = reinterpret(reshape,T,Vector{Tuple{T,T}}(undef, 17)); src2 .= src;
265+
dest2 = reinterpret(reshape,T,Vector{Tuple{T,T}}(undef, 17));
266266
issue280!(dest2, src2)
267267
@test dest2 vcat(view(src,2,:)',view(src,1,:)')
268268
end

test/outer_reductions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function test_awmean(::Type{T}) where {T}
5050
wxlv, wσlv, mswdlv = awmean_lv(x, σ)
5151
isfinite(wx) && @test wx wxlv
5252
isfinite(wσ) && @test wσlv
53-
isfinite(mswd) && @test mswd mswdlv
53+
isfinite(mswd) && @test mswd mswdlv atol=1e-16 rtol=sqrt(eps(typeof(mswdlv)))
5454
end
5555
end
5656

0 commit comments

Comments
 (0)