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 Oct 21, 2020
1 parent 0d63462 commit 3f69407
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 3f69407

Please sign in to comment.