Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins authored Apr 8, 2024
1 parent 5f333f1 commit 743c718
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ using Test, Tables, OrderedCollections, TableTraits, DataValues, QueryOperators,
sch = Tables.Schema((), ())
@test sch.names == ()
@test sch.types == ()

# Empty vector of Vector or their view
@test Tables.columntable(Vector{Any}[]) == NamedTuple()
T = typeof(view(Vector{Any}[], :))
@test Tables.columntable(T[]) == NamedTuple()
end

@testset "namedtuples.jl" begin
Expand Down

0 comments on commit 743c718

Please sign in to comment.