Skip to content

Commit

Permalink
Merge pull request #19 from JuliaReach/schillic/test
Browse files Browse the repository at this point in the history
Test backward with Singleton output
  • Loading branch information
schillic committed Feb 29, 2024
2 parents dc88bc2 + 7c8eb8c commit a53b4be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/BackwardAlgorithms/backward.jl
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,12 @@ end
x = [0.0, 1]
y = Sigmoid()(x)
Y = BallInf(y, 0.0)
Y2 = Singleton(y)

# all algorithms
for algo in (BoxBackward(), PolyhedraBackward(), DummyBackward())
@test backward(y, Sigmoid(), algo) == x
@test isequivalent(backward(Y2, Sigmoid(), algo), Singleton(x))
end

# exact algorithms
Expand Down

0 comments on commit a53b4be

Please sign in to comment.