Skip to content

Commit 82b4e7f

Browse files
committed
fix test apparently broken by Julia upgrade
1 parent d65ed1f commit 82b4e7f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/resampling.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,8 @@ end
862862
measures=[LogLoss(), BrierScore()], verbosity=0)
863863
end
864864

865+
docstring_text = @doc(PerformanceEvaluation) |> string
866+
865867
@testset "reported fields in documentation" begin
866868
# Using `evaluate` to obtain a `PerformanceEvaluation` object.
867869
clf = ConstantClassifier()
@@ -875,11 +877,11 @@ end
875877
cols = ["measure", "operation", "measurement", "1.96*SE", "per_fold"]
876878
@test all(contains.(show_text, cols))
877879
print(show_text)
878-
docstring_text = string(@doc(PerformanceEvaluation))
879880
for fieldname in fieldnames(PerformanceEvaluation)
880881
@test contains(show_text, string(fieldname))
881882
# string(text::Markdown.MD) converts `-` list items to `*`.
882-
@test contains(docstring_text, " * `$fieldname`")
883+
@test contains(docstring_text, "* `$fieldname`") ||
884+
contains(docstring_text, "- `$fieldname`")
883885
end
884886

885887
measures = [LogLoss(), Accuracy()]

0 commit comments

Comments
 (0)