Skip to content

Commit

Permalink
Add test for #74 to ensure it's not an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 30, 2017
1 parent fdc7467 commit da3a519
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/source.jl
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,8 @@ let fn = tempname()
@test String(read(fn)) == "a,b,c\n"
rm(fn)
end

source = IOBuffer("col1,col2,col3") # empty dataset
df = CSV.read(source; transforms=Dict(2 => floor))
@test size(Data.schema(df)) == (0, 3)
@test Data.types(Data.schema(df)) == (Any, Any, Any)

0 comments on commit da3a519

Please sign in to comment.