From 5369e2d7482b30a639e51897b911195f1e5e7a61 Mon Sep 17 00:00:00 2001 From: Lyndon White Date: Fri, 18 Sep 2020 19:14:04 +0100 Subject: [PATCH] Correct tests re #191 --- test/sensitivities/functional/reducedim.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sensitivities/functional/reducedim.jl b/test/sensitivities/functional/reducedim.jl index bf9cffc4..a0c1f919 100644 --- a/test/sensitivities/functional/reducedim.jl +++ b/test/sensitivities/functional/reducedim.jl @@ -54,8 +54,8 @@ randn(rng, 10, 10, 10), randn(rng, 10, 10, 10)) # Issue #123 - x6_ = collect(1:10) - tens = (fill(10.0, (10,)), fill(10.0, (10, 1))) + x6_ = float.(1:10) + tens = (fill(10.0, (10,)), fill(10.0, (10,))) @test ∇(x->sum(sum(x, dims=2)))(x6_) == (oneslike(x6_),) @test ∇((x, y)->sum(sum(x, dims=2) .+ sum(y, dims=2)'))(x6_, x6_) == tens @test ∇((x, y)->sum(x .+ y'))(x6_, x6_) == tens