From d800e03b03d4b799f2cc2863892c4915aec6241f Mon Sep 17 00:00:00 2001 From: rafaqz Date: Wed, 1 Nov 2023 14:22:05 +0100 Subject: [PATCH] fix basics tests --- test/basic.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/basic.jl b/test/basic.jl index 032d1ff..bdcafcc 100644 --- a/test/basic.jl +++ b/test/basic.jl @@ -102,10 +102,10 @@ using Test #src @test Interfaces.test(Animals.AnimalInterface, Duck, ducks) == true #src @test Interfaces.test(Animals.AnimalInterface{(:walk,:talk)}, Duck, ducks) == true #src # TODO wrap errors somehow, or just let Invariants.jl handle that. #src - @test_throws MethodError Interfaces.test(Animals.AnimalInterface{:dig}, Duck, ducks) #src + @test_throws Interfaces.InterfaceError Interfaces.test(Animals.AnimalInterface{:dig}, Duck, ducks) #src end #src @testset "Chicken" begin #src @test Interfaces.implements(Animals.AnimalInterface{(:walk,:talk)}, Chicken()) == false #src - @test_throws MethodError Interfaces.test(Animals.AnimalInterface{(:walk,:talk)}, Chicken()) #src + @test_throws Interfaces.InterfaceError Interfaces.test(Animals.AnimalInterface{(:walk,:talk)}, Chicken()) #src end #src