inst/tests/test_sampleFunc.R

#require(testthat)
context("fSampleFunc")

#test_that("two vectors are added correctly",{
#		a = 1:10
#		b = 1
#		c = a+b
#		expect_that( fSampleFunc(a,b), equals(c) )
#		expect_that( fSampleFunc(a), throws_error() )
#	})

Try the pplane package in your browser

Any scripts or data that you put into this service are public.

pplane documentation built on May 2, 2019, 6:07 p.m.