Skip to content

Commit 978ad65

Browse files
committed
fix failing test
1 parent e13b3c1 commit 978ad65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/StatisticalTraits.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ abstract_type(::Type) = Any
173173
is_wrapper(::Type) = false # or `true`
174174
supports_online(::Type) = false # or `true`
175175
docstring(M::Type) = string(M) # some `String`
176-
docstring(Contructor::Function) = Base.Docs.doc(Constructor) |> string
176+
docstring(Constructor::Function) = Base.Docs.doc(Constructor) |> string
177177
is_supervised(::Type) = false # or `true`
178178
human_name(M::Type) = snakecase(name(M), delim=' ') # `name` defined below
179179
orientation(::Type) = :loss # or `:score`, `:other`

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ end
4646
@testset "docstring" begin
4747
@test docstring(Foo(1,'x')) == "Foo"
4848
@test docstring(Fruit.RedApple(4)) == "Main.Fruit.RedApple{Int64}"
49-
@test docstring(sin) = Base.Docs.doc(sin) |> string
49+
@test docstring(sin) == Base.Docs.doc(sin) |> string
5050
end
5151

5252
@testset "hyperparameter_ranges" begin

0 commit comments

Comments
 (0)