From 978ad65a19dec10bcd5cf959b19c9ad2929a24c7 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 3 Jun 2024 16:19:10 +1200 Subject: [PATCH] fix failing test --- src/StatisticalTraits.jl | 2 +- test/runtests.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StatisticalTraits.jl b/src/StatisticalTraits.jl index 2f0676d..1d0e960 100644 --- a/src/StatisticalTraits.jl +++ b/src/StatisticalTraits.jl @@ -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` diff --git a/test/runtests.jl b/test/runtests.jl index da7c87b..99afdf1 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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