Skip to content
New issue

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

rewrite function to compare two list-containing tibbles #65

Merged
merged 2 commits into from
Mar 25, 2020

Conversation

russHyde
Copy link
Owner

New function is called expect_equal_tbl (rather than
expect_equal_listy_tbl, as previously).

One of my tests failed when using the release-pending dplyr=1.0 (and
similarly updated rlang, vctrs): the earlier versions of dplyr (etc)
allowed attribute mismatches between list-containing tbls but the new
dplyr don't (when using tidyr::unnest and then comparing dataframes).

The test has been rewritten based on one of my stack overflow posts:
https://stackoverflow.com/a/59947803/1845650

... and no longer needs tidyr

I have added a expect_equivalent_tbl function too, this allows
attribute mismatches when comparing two list-containing tbls.

New function is called `expect_equal_tbl` (rather than
`expect_equal_listy_tbl`, as previously).

One of my tests failed when using the release-pending dplyr=1.0 (and
similarly updated rlang, vctrs): the earlier versions of dplyr (etc)
allowed attribute mismatches between list-containing tbls but the new
dplyr don't (when using tidyr::unnest and then comparing dataframes).

The test has been rewritten based on one of my stack overflow posts:
https://stackoverflow.com/a/59947803/1845650

... and no longer needs tidyr

I have added a `expect_equivalent_tbl` function too, this allows
attribute mismatches when comparing two list-containing tbls.
@russHyde russHyde merged commit 09b3b25 into master Mar 25, 2020
@russHyde russHyde deleted the fix-tests-for-dplyr-1.0 branch March 30, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant