From aa6853e40e213148dbaaf87784cc675ef95c473e Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Mon, 17 Jun 2024 20:03:14 +0200 Subject: [PATCH] Add exception tests --- test/symbols.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/symbols.jl b/test/symbols.jl index 72743bd..bc39c7e 100644 --- a/test/symbols.jl +++ b/test/symbols.jl @@ -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)