Skip to content

Commit 9f47033

Browse files
committed
Fix NaN detection test
1 parent fa05fd0 commit 9f47033

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/test_nan_detection.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,17 @@ using DynamicExpressions.UtilsModule: is_bad_array
4040
using StaticArrays
4141

4242
function manual_nan_test(
43-
::Type{T}, array_size, nan_location, ::Val{static_array}, unroll
43+
::Type{T}, array_size, nan_location, ::Val{static_array}
4444
) where {T,static_array}
4545
x = ones(T, array_size)
4646
x = static_array ? MVector{array_size}(x) : x
47-
@test !is_bad_array(x, unroll)
47+
@test !is_bad_array(x)
4848
x[nan_location] = T(NaN)
49-
@test is_bad_array(x, unroll)
49+
@test is_bad_array(x)
5050
end
5151

5252
@testset "Manual NaN tests" begin
53-
unroll_size = 16
54-
unroll = Val(unroll_size)
53+
unroll_size = 32
5554
for T in [Float16, Float32, Float64, ComplexF16, ComplexF32, ComplexF64],
5655
array_size in 1:(2 * unroll_size + 1),
5756
nan_location in 1:array_size,

0 commit comments

Comments
 (0)