We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_that("bind_rows handles data frames with no columns (#1346)", { df1 <- data_frame(x = 1, y = factor("a")) df0 <- df1[, 0] expect_equal(bind_rows(df0), df0) expect_equal(bind_rows(df0, df0), df0) expect_equal(bind_rows(df0, df1), df1) })
(should go in test-binds.R, in rows section)
test-binds.R
The text was updated successfully, but these errors were encountered:
f88368c
The problem was actually that equal_data_frame did not handle data frames with 0 columns. This is fixed now.
equal_data_frame
However, I cannot fold the tests in as is, e.g bind_rows(df0, df0) makes a df with 2 rows instead of 1, since df0 has 1 row.
bind_rows(df0, df0)
df0
Sorry, something went wrong.
Oh, good point. I'll fix the test
20b02fe
equality test for data.frame handles the case where the df has 0 co…
data.frame
b6957a8
…lumn. closes tidyverse#1506.
romainfrancois
No branches or pull requests
(should go in
test-binds.R
, in rows section)The text was updated successfully, but these errors were encountered: