Skip to content

Commit

Permalink
skip more on cran
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Aug 30, 2023
1 parent 465cf5d commit 0135bf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-wt_dt.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_that("as.wt_dt", {
skip_on_cran()
data("testdt_tracking")
class(testdt_tracking) <- "data.frame"
testdt_tracking$timestamp <- as.character(testdt_tracking$timestamp)
Expand All @@ -16,20 +17,23 @@ test_that("as.wt_dt", {
})

test_that("as.wt_dt errors", {
skip_on_cran()
data("testdt_tracking")
expect_no_error(as.wt_dt(testdt_tracking))
names(testdt_tracking)[1] <- "wrong"
expect_error(as.wt_dt(testdt_tracking))
})

test_that("is.wt_dt", {
skip_on_cran()
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
expect_true(is.wt_dt(wt))
expect_false(is.wt_dt(testdt_tracking))
})

test_that("summary", {
skip_on_cran()
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
sum <- utils::capture.output(summary(wt))
Expand All @@ -38,6 +42,7 @@ test_that("summary", {
})

test_that("print", {
skip_on_cran()
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
sum <- utils::capture.output(print(wt))
Expand Down

0 comments on commit 0135bf6

Please sign in to comment.