Skip to content

Commit

Permalink
fix basics tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Nov 1, 2023
1 parent 85bd57e commit d800e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d800e03

Please sign in to comment.