Skip to content

Commit 1b3238f

Browse files
test: improve variable names; rm unused loc
1 parent c88e61b commit 1b3238f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/basic_indexing.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,5 @@ y = 2 * x
282282
@test all(all.(y .== x))
283283

284284

285-
x = ArrayPartition(ArrayPartition(rand(3,4), rand(3,4)), rand(2))
286-
@test (x .* 1.2) isa ArrayPartition{<:Any, <:ArrayPartition}
287-
288-
g = Zygote.gradient(norm, x)[1]
285+
x_ap = ArrayPartition(ArrayPartition(rand(3,4), rand(3,4)), rand(2))
286+
@test (x_ap .* 1.2) isa typeof(x_ap)

0 commit comments

Comments
 (0)