Skip to content

Commit 1f78154

Browse files
committed
add tests
1 parent 040adcd commit 1f78154

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/traits.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@ LearnAPI.algorithm(model::SmallAlgorithm) = model
2626
# OVERLOADABLE TRAITS
2727

2828
small = SmallAlgorithm()
29+
@test LearnAPI.constructor(small) == SmallAlgorithm
30+
@test LearnAPI.functions(small) == (:(LearnAPI.fit), :(LearnAPI.algorithm))
31+
@test isempty(LearnAPI.kinds_of_proxy(small))
32+
@test isempty(LearnAPI.tags(small))
2933
@test !LearnAPI.is_pure_julia(small)
3034
@test LearnAPI.pkg_name(small) == "unknown"
3135
@test LearnAPI.pkg_license(small) == "unknown"
36+
@test LearnAPI.doc_url(small) == "unknown"
3237
@test LearnAPI.load_path(small) == "unknown"
3338
@test !LearnAPI.is_composite(small)
3439
@test LearnAPI.human_name(small) == "small algorithm"

0 commit comments

Comments
 (0)