Skip to content

Commit 2122e0e

Browse files
committed
Mention how nothing is used in the test
1 parent 2b84499 commit 2122e0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/reduce.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ end
186186
@test sum(nothing, Array{Any,3}(undef, 3, 2, 0); dims = 1, init = init) ==
187187
zeros(typeof(init), 1, 2, 0)
188188
end
189+
# Note: We are using `nothing` in place of the callable to make
190+
# sure that it's not actually called.
189191
end
190192

191193
# check sum(abs, ...) for support of empty collections
@@ -226,6 +228,8 @@ end
226228
@test prod(nothing, Array{Any,3}(undef, 3, 2, 0); dims = 1, init = init) ==
227229
ones(typeof(init), 1, 2, 0)
228230
end
231+
# Note: We are using `nothing` in place of the callable to make
232+
# sure that it's not actually called.
229233
end
230234

231235
# check type-stability

0 commit comments

Comments
 (0)