Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Correct tests re #191
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Jul 2, 2021
1 parent fb45de7 commit 5369e2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sensitivities/functional/reducedim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5369e2d

Please sign in to comment.