Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
add test
  • Loading branch information
ablaom committed Oct 15, 2024
1 parent 8a00b3b commit e9f863b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ test_files = [
"traits.jl",
"clone.jl",
"accessor_functions.jl",
"target_features.jl",
"patterns/regression.jl",
"patterns/static_algorithms.jl",
"patterns/ensembling.jl",
Expand Down
11 changes: 11 additions & 0 deletions test/target_features.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Test
using LearnAPI

struct Avacado end

Check warning on line 4 in test/target_features.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Avacado" should be "Avocado".

@test isnothing(LearnAPI.target(Avacado(), "salsa"))

Check warning on line 6 in test/target_features.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Avacado" should be "Avocado".
@test isnothing(LearnAPI.weights(Avacado(), "salsa"))

Check warning on line 7 in test/target_features.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Avacado" should be "Avocado".
@test LearnAPI.features(Avacado(), "salsa") == "salsa"

Check warning on line 8 in test/target_features.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Avacado" should be "Avocado".
@test LearnAPI.features(Avacado(), (:X, :y)) == :X

Check warning on line 9 in test/target_features.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Avacado" should be "Avocado".

true

0 comments on commit e9f863b

Please sign in to comment.