Skip to content

Commit

Permalink
Add exception tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Jun 17, 2024
1 parent d25eacc commit aa6853e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/symbols.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ using Test
@test ADTypes.Auto(:Tapir) isa AutoTapir
@test ADTypes.Auto(:Tracker) isa AutoTracker
@test ADTypes.Auto(:Zygote) isa AutoZygote

@test_throws MethodError ADTypes.Auto(:ThisPackageDoesNotExist)
@test_throws UndefKeywordError ADTypes.Auto(:ChainRules)
@test_throws UndefKeywordError ADTypes.Auto(:FiniteDifferences)

0 comments on commit aa6853e

Please sign in to comment.