RUnit test framework
Dirk Eddelbuettel
edd at debian.org
Sat Dec 29 23:38:40 CET 2007
I finally got around to studying the nice Unit test framework now in
Rmetrics, and started to adopt it for RQuantLib. As my source directories
often have names like RQuantLib-0.2.8, I needed to another small change in tests/doRUnit.R:
wd <- getwd()
pkg <- sub("\\.Rcheck$", '', basename(dirname(wd))) # sub out trailing .Rcheck
pkg <- gsub("[0-9.-]*$", '', pkg) # sub out -0.1.2 number
ie I added that 3rd line to substitute out the '-0.2.8' part --- or else it
fails.
One quick question: why do none of the unit tests use the 'checkEquals()'
framework?
Cheers, Dirk
--
Three out of two people have difficulties with fractions.
More information about the Rmetrics-core
mailing list