inst/extdata/test_1.R

library(RUnit)

test.sum <- function(){
  checkIdentical(my_sum(2,3), 5)
  checkIdentical(my_sum_broken(2,3), 5)
}

test.dif <- function(){
  checkIdentical(my_dif(2,3), -1)
  checkIdentical(my_dif_broken(2,3), -1)
}
simonpedrobolivar/filecovRunit documentation built on May 28, 2019, 5:41 a.m.