Skip to content

Commit

Permalink
add groupby() test from JuliaData#862
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Apr 4, 2016
1 parent 49d2c84 commit fd089a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/grouping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ module TestGrouping
h(df) = g(f(df))

@test combine(map(h, gd)) == combine(map(g, ga))

# testing pool overflow
df2 = DataFrame(v1 = pool(collect(1:1000)), v2 = pool(fill(1, 1000)))
@test groupby(df2, [:v1, :v2]).starts == collect(1:1000)
@test groupby(df2, [:v2, :v1]).starts == collect(1:1000)
end

0 comments on commit fd089a5

Please sign in to comment.