From 3740f2118dc7128a430d794185864248c98f0304 Mon Sep 17 00:00:00 2001 From: Jan Weidner Date: Wed, 25 Oct 2017 22:17:46 +0200 Subject: [PATCH] more tests --- test/runtests.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 63ef391..feb1ad2 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -77,7 +77,8 @@ op() = (x,y) -> x < y x = 1; y = 2 @argcheck op()(x,y) @test_throws ArgumentError @argcheck op()(y,x) - +@test_throws ArgumentError @argcheck begin false end +@test_throws DivideError @argcheck f() DivideError() struct MyExoticError <: Exception a::Int