Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed Jun 3, 2024
1 parent e13b3c1 commit 978ad65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/StatisticalTraits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ abstract_type(::Type) = Any
is_wrapper(::Type) = false # or `true`
supports_online(::Type) = false # or `true`
docstring(M::Type) = string(M) # some `String`
docstring(Contructor::Function) = Base.Docs.doc(Constructor) |> string
docstring(Constructor::Function) = Base.Docs.doc(Constructor) |> string
is_supervised(::Type) = false # or `true`
human_name(M::Type) = snakecase(name(M), delim=' ') # `name` defined below
orientation(::Type) = :loss # or `:score`, `:other`
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ end
@testset "docstring" begin
@test docstring(Foo(1,'x')) == "Foo"
@test docstring(Fruit.RedApple(4)) == "Main.Fruit.RedApple{Int64}"
@test docstring(sin) = Base.Docs.doc(sin) |> string
@test docstring(sin) == Base.Docs.doc(sin) |> string
end

@testset "hyperparameter_ranges" begin
Expand Down

0 comments on commit 978ad65

Please sign in to comment.