(v1.4.0.9039) more unit tests

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-12-13 20:44:32 +01:00
1 parent ac22b8d5c1
commit 203bc20eb0
27 files changed
+100 -63

No files matched your search

+5
View File
@@ -39,7 +39,12 @@ test_that("disk works", {
expect_s3_class(c(x[1], x[9]), "disk")
expect_s3_class(unique(x[1], x[9]), "disk")
expect_warning(as.disk("INVALID VALUE"))
x[2] <- 32
expect_s3_class(x, "disk")
pdf(NULL) # prevent Rplots.pdf being created
expect_silent(plot(as.disk(c(10, 20, 40))))
expect_output(print(as.disk(12)))
library(dplyr, warn.conflicts = FALSE)
expect_output(print(tibble(d = as.disk(12))))