Skip to content

Commit 82beba4

Browse files
committed
Fix NaN detection test
1 parent fa05fd0 commit 82beba4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/test_nan_detection.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,24 @@ 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,
5857
static_array in [false, true]
5958

6059
manual_nan_test(
61-
T, array_size, nan_location, static_array ? Val(true) : Val(false), unroll
60+
T, array_size, nan_location, static_array ? Val(true) : Val(false)
6261
)
6362
end
6463
end

0 commit comments

Comments
 (0)