(v0.7.1.9062) mo/ab assignment improvements

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-08-26 16:02:03 +02:00
1 parent 13d4fef801
commit 7a6fce4eb8
19 files changed
+383 -378

No files matched your search

+9
View File
@@ -284,4 +284,13 @@ test_that("as.mo works", {
# print tibble
expect_output(print(tibble(mo = as.mo("B_STRPT_PNE"))))
# assigning and subsetting
x <- septic_patients$mo
expect_s3_class(x[1], "mo")
expect_s3_class(x[[1]], "mo")
expect_s3_class(c(x[1], x[9]), "mo")
expect_warning(x[1] <- "invalid code")
expect_warning(x[[1]] <- "invalid code")
expect_warning(c(x[1], "test"))
})