Skip to content

Commit

Permalink
skipped tests #72
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed Nov 9, 2022
1 parent 3f2dc82 commit f7972d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test-to_json_unbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ test_that("single-vectors unboxed", {
js <- to_json(x, unbox = T, numeric_dates = F )
expect_equal( as.character( js ), "\"2017-12-31T13:00:01\"")
expect_true( validate_json( js ) )

})

test_that("Posixlt unboxed", {

testthat::skip_on_cran()

x <- as.POSIXlt("2018-01-01 01:00:00", tz = "GMT")
js <- to_json(x, unbox = T)
expect_equal( as.character( js ), "{\"sec\":0.0,\"min\":0,\"hour\":1,\"mday\":1,\"mon\":0,\"year\":118,\"wday\":1,\"yday\":0,\"isdst\":0}" )
Expand Down

0 comments on commit f7972d5

Please sign in to comment.