Skip to content

Commit 550656c

Browse files
anthonyanthony
authored andcommitted
add test of selectcols with schema
1 parent 6b8b899 commit 550656c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/interface/data_utils.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ end
199199
v = categorical(collect("asdfasdf"))
200200
tt = TypedTables.Table(v=v, w=v)
201201
@test selectcols(tt, :w) == v
202+
203+
X = (; x1=ones(3), x2=ones(3), x3=ones(3));
204+
selectcols(X, MLJBase.schema(X).names)
202205
end
203206

204207
# https://github.com/JuliaAI/MLJBase.jl/issues/784

0 commit comments

Comments
 (0)