Skip to content

Commit

Permalink
Update test_mlr_measures_MeasureSurvIntegrated.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael committed Dec 18, 2019
1 parent be78dc9 commit 86e633d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test_mlr_measures_MeasureSurvIntegrated.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ test_that("constructor", {
test_that("fields",{
m = MeasureSurvGraf$new(times = 32, integrated = TRUE)
expect_equal(m$times, 32)
expect_true(m$integrated)
expect_false(m$integrated)
expect_silent({m$times = 34})
expect_silent({m$integrated = TRUE})
expect_silent({m$times = c(34, 60)})
expect_error({m$integrated = "D"}, "logical flag")
expect_error({m$integrated = FALSE}, "non-integrated score")
Expand Down

0 comments on commit 86e633d

Please sign in to comment.