Debian Codegraph @

tests/testthat/test-format_time.R

raw
1 test_that("output test", {
2 expect_snapshot({
3 pillar(add_special(as.POSIXct("2017-07-28 18:04:35 +0200")))
4 pillar(add_special(as.POSIXlt("2017-07-28 18:04:35 +0200")))
5 })
6 withr::with_options(
7 list(digits.secs = 4),
8 expect_snapshot({
9 pillar(add_special(as.POSIXlt("2017-07-28 18:04:35 +0200")))
10 })
11 )
12
13 testthat::skip_if(getRversion() < "3.3")
14 expect_snapshot({
15 pillar(add_special(as.difftime(8:11, units = "secs")))
16 })
17 })