-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ test_that("set operations reconstruct grouping metadata (#3587)", { | |
df1 <- tibble(x = 1:4, g = rep(1:2, each = 2)) %>% group_by(g) | ||
df2 <- tibble(x = 3:6, g = rep(2:3, each = 2)) | ||
|
||
expect_equal( setdiff(df1, df2) %>% group_rows(), list(0:1)) | ||
expect_equal( intersect(df1, df2) %>% group_rows(), list(0:1)) | ||
expect_equal( union(df1, df2) %>% group_rows(), list(4:5, 2:3, 0:1)) | ||
expect_equal( setdiff(df1, df2) %>% group_rows(), list(1:2)) | ||
expect_equal( intersect(df1, df2) %>% group_rows(), list(1:2)) | ||
expect_equal( union(df1, df2) %>% group_rows(), list(5:6, 3:4, 1:2)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
krlmlr
Member
|
||
}) |
@romainfrancois: This test now works differently on Windows (returning
list(1:2, 3:4, 5:6)
). Any idea why? Do we guarantee order inunion()
and the other set operations?