Skip to content

Commit

Permalink
Fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
owenjonesuob committed Dec 27, 2020
1 parent 3ebacee commit 8dbe7ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

* local R installation (Fedora 33), R 4.0.3
* GitHub Actions (https://github.com/owenjonesuob/pkgnews/actions)
* win-builder (via `devtools::check_win_devel()`)
* R-hub (via `devtools::check_rhub()`)
* R-hub (via `devtools::check_rhub()` with default platforms)
* winbuilder (via `devtools::check_win_devel()`)


## R CMD check results

0 errors | 0 warnings | 1 note

* This is a new release.
* This is a new submission.
6 changes: 3 additions & 3 deletions tests/testthat/test-news.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ test_that("web", {

expect_match(
# Drop zero-length elements with Filter(), in particular the last empty line!
tail(Filter(length, news("dplyr")), 1),
tail(Filter(nzchar, news("dplyr")), 1),
"download size from 2.8 MB to 0.5 MB.",
fixed = TRUE
)

expect_equal(
tail(Filter(length, news("checkLuhn")), 1),
tail(Filter(nzchar, news("checkLuhn")), 1),
"- First release"
)

expect_equal(
tail(Filter(length, news("goodpractice")), 1),
tail(Filter(nzchar, news("goodpractice")), 1),
"First public release."
)

Expand Down

0 comments on commit 8dbe7ff

Please sign in to comment.