Skip to content

Commit 9785b13

Browse files
committed
Fix wrong variable name in indmax/min tests
1 parent a2eb4b2 commit 9785b13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/reduce.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ end
426426
@test indmin(cos, 0:π/2:2π) == 3
427427
@test indmin(identity, [1, 2, 3, missing]) === 4
428428

429-
prod_test = collect(Iterators.product(1:5, 1:5))
429+
prodtest = collect(Iterators.product(1:5, 1:5))
430430
@test indmin(sum, prodtest) == CartesianIndex(1, 1)
431431
@test indmin(identity, prodtest) == indmin(prodtest)
432432
@test indmin(identity, prodtest) == CartesianIndex(1, 1)
@@ -437,7 +437,7 @@ end
437437
@test indmax(cos, 0:π/2:2π) == 1
438438
@test indmax(identity, [1, 2, 3, missing]) == 4
439439

440-
prod_test = collect(Iterators.product(1:5, 1:5))
440+
prodtest = collect(Iterators.product(1:5, 1:5))
441441
@test indmax(sum, prodtest) == CartesianIndex(5, 5)
442442
@test indmax(identity, prodtest) == indmax(prodtest)
443443
@test indmax(identity, prodtest) == CartesianIndex(5, 5)

0 commit comments

Comments
 (0)