Skip to content

Commit 9f3f0a4

Browse files
committed
adding an explicit test to clarify review comment
1 parent a2314a6 commit 9f3f0a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/model_traits.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ struct FooMeasure <: MLJType end
7272
@test name(Float64) == "Float64"
7373

7474
df = DataFrame(a=randn(2), b=randn(2))
75-
if VERSION < v"1.6-"
75+
@static if VERSION < v"1.6-"
7676
@test string(M.coretype(typeof(df))) == "DataFrame"
7777
else
7878
@test string(M.coretype(typeof(df))) == "typename(DataFrame)"
7979
end
80+
@test M.name(typeof(df)) == "DataFrame"
8081
end

0 commit comments

Comments
 (0)