Skip to content

Commit cbcc2ee

Browse files
Merge pull request neelsoumya#25 from StuartWheater/v2.3.0-dev
V2.3.0 dev
2 parents 7f51193 + cfdefe6 commit cbcc2ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/testthat/test-arg-plotsurvfitDS.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ set.standard.disclosure.settings()
2121
# Tests
2222
#
2323

24+
context("plotsurvfitDS::arg::dataName valid")
25+
test_that("dataName valid", {
26+
dataName = "data_obj"
27+
data_obj = NULL
28+
29+
expect_error(plotsurvfitDS(formula = NULL, dataName = dataName), "The formula must be set for use in survival::coxph()", fixed = TRUE)
30+
})
31+
2432
context("plotsurvfitDS::arg::formula is NULL")
2533
test_that("formula is NULL", {
2634
expect_error(plotsurvfitDS(formula = NULL), "The formula must be set for use in survival::coxph()", fixed = TRUE)

0 commit comments

Comments
 (0)