Skip to content

Commit

Permalink
add testthat
Browse files Browse the repository at this point in the history
  • Loading branch information
fouodo committed Jun 14, 2017
1 parent 6aba05e commit 25f0394
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -0,0 1,4 @@
library(testthat)
library(survivalsvm)

test_check("survivalsvm")
7 changes: 7 additions & 0 deletions tests/testthat/test_simple.R
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@


svm <- survivalsvm(Surv(time, status) ~ ., veteran, gamma.mu = 0.1)

test_that("survival svm returns class survivalsvm", {
expect_is(svm, "survivalsvm")
})

0 comments on commit 25f0394

Please sign in to comment.