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 Aug 25, 2015
1 parent 948f9c1 commit 0fa0379
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/grouping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ module TestGrouping
h(df) = g(f(df))

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

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 0fa0379

Please sign in to comment.