Skip to content

Commit 3e191c0

Browse files
committed
minor fixes
1 parent dd48e74 commit 3e191c0

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

R/arithmetic.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#'
55
#' @param ... `date_xx` vectors. It is up to the user to ensure that they are
66
#' of the same subclass.
7-
#' @param na.rm
7+
#' @inheritParams base::Summary
88
#'
99
#' @return
1010
#' for `min()` and `max()` a scalar of the same `date_xx` subclass as it's

man/Summary.date_xx.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/c.date_xx.Rd

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test_format.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_that("format date_y works as expected", {
4848
expect_error(format(td, format = character()))
4949
expect_error(
5050
format(td, format = paste(all_tokens, collapse = " ")),
51-
"%b, %B, %m, %q, %W"
51+
paste(sort(c("%b", "%B", "%m", "%q", "%W")), collapse = ", ")
5252
)
5353
})
5454

@@ -144,7 +144,10 @@ test_that("format.date_yw: All Tokens Work", {
144144
)
145145

146146
# abort on illegal tokens
147-
expect_error(format(m, format = paste(all_tokens, collapse = " ")), "%b, %B, %m, %q")
147+
expect_error(
148+
format(m, format = paste(all_tokens, collapse = " ")),
149+
paste(sort(c("%b", "%B", "%m", "%q")), collapse = ", ")
150+
)
148151
})
149152

150153

0 commit comments

Comments
 (0)