Skip to content

Commit 7ae83b0

Browse files
committed
add test
1 parent 059a6b4 commit 7ae83b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/traits.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ small = SmallLearner()
4848

4949
# DERIVED TRAITS
5050

51+
@trait SmallLearner kinds_of_proxy=(Point(),)
5152
@test LearnAPI.is_learner(small)
5253
@test !LearnAPI.target(small)
5354
@test !LearnAPI.weights(small)
55+
@test LearnAPI.preferred_kind_of_proxy(small) == Point()
5456

5557
module FruitSalad
5658
import LearnAPI

0 commit comments

Comments
 (0)