[med-svn] [r-cran-tidyr] 01/03: Fix autopkgtests: create test tibbles with tibble()
Graham Inggs
ginggs at moszumanska.debian.org
Fri Nov 24 15:31:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
ginggs pushed a commit to branch master
in repository r-cran-tidyr.
commit 03931e71c22f287edde070c3a56e312eac4f6c19
Author: Graham Inggs <ginggs at debian.org>
Date: Fri Nov 24 17:22:22 2017 +0200
Fix autopkgtests: create test tibbles with tibble()
---
debian/changelog | 6 +++
debian/patches/create_tibbles_with_tibble.patch | 50 +++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 57 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index af9349f..0fa999a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+r-cran-tidyr (0.7.1-2) UNRELEASED; urgency=medium
+
+ * Fix autopkgtests: create test tibbles with tibble()
+
+ -- Graham Inggs <ginggs at debian.org> Fri, 24 Nov 2017 15:21:35 +0000
+
r-cran-tidyr (0.7.1-1) unstable; urgency=medium
* New upstream version
diff --git a/debian/patches/create_tibbles_with_tibble.patch b/debian/patches/create_tibbles_with_tibble.patch
new file mode 100644
index 0000000..9cb769c
--- /dev/null
+++ b/debian/patches/create_tibbles_with_tibble.patch
@@ -0,0 +1,50 @@
+Description: Consistently create test tibbles with tibble()
+Origin: upstream, https://github.com/tidyverse/tidyr/commit/e3bb0cdf62c53879bc8159c2a997aa14cc0453fb
+Author: Hadley Wickham <h.wickham at gmail.com>
+Last-Update: 2017-11-20
+--- a/tests/testthat/test-expand.R
++++ b/tests/testthat/test-expand.R
+@@ -47,7 +47,7 @@
+ })
+
+ test_that("zero length inputs are automatically dropped", {
+- tb <- tibble::tibble(x = 1:5)
++ tb <- tibble(x = 1:5)
+ expect_equal(expand(tb, x, y = numeric()), tb)
+ expect_equal(nesting(x = tb$x, y = numeric()), tb)
+ expect_equal(crossing(x = tb$x, y = numeric()), tb)
+--- a/tests/testthat/test-spread.R
++++ b/tests/testthat/test-spread.R
+@@ -145,7 +145,7 @@
+ })
+
+ test_that("can spread with nested columns", {
+- df <- tibble::tibble(x = c("a", "a"), y = 1:2, z = list(1:2, 3:5))
++ df <- tibble(x = c("a", "a"), y = 1:2, z = list(1:2, 3:5))
+ out <- spread(df, x, y)
+
+ expect_equal(out$a, 1:2)
+--- a/tests/testthat/test-unnest.R
++++ b/tests/testthat/test-unnest.R
+@@ -60,7 +60,7 @@
+ })
+
+ test_that(".id creates vector of names for grouped vector unnest", {
+- df <- data_frame(x = 1:2, y = list(a = 1, b = 1:2)) %>%
++ df <- tibble(x = 1:2, y = list(a = 1, b = 1:2)) %>%
+ dplyr::group_by(x)
+ out <- unnest(df, .id = "name")
+
+@@ -78,9 +78,9 @@
+ })
+
+ test_that(".id creates vector of names for grouped data frame unnest", {
+- df <- data_frame(x = 1:2, y = list(
+- a = data_frame(y = 1),
+- b = data_frame(y = 1:2)
++ df <- tibble(x = 1:2, y = list(
++ a = tibble(y = 1),
++ b = tibble(y = 1:2)
+ )) %>%
+ dplyr::group_by(x)
+ out <- unnest(df, .id = "name")
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4d8c083
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+create_tibbles_with_tibble.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-tidyr.git
More information about the debian-med-commit
mailing list