Skip to content

Commit 7aa87ea

Browse files
committed
add groupby() test from JuliaData#862
1 parent f2a838b commit 7aa87ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/grouping.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ module TestGrouping
2929
h(df) = g(f(df))
3030

3131
@test combine(map(h, gd)) == combine(map(g, ga))
32+
33+
df2 = DataFrame(v1 = pool(collect(1:1000)), v2 = pool(fill(1, 1000)))
34+
@test groupby(df2, [:v1, :v2]).starts == collect(1:1000)
35+
@test groupby(df2, [:v2, :v1]).starts == collect(1:1000)
3236
end

0 commit comments

Comments
 (0)