Skip to content

Commit 2fac588

Browse files
committed
fully qualify three functions from RUnit inside test()
[ even though we're inside if (require(RUnit)) { ...} ]
1 parent 732392c commit 2fac588

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2014-09-09 Dirk Eddelbuettel <[email protected]>
2+
3+
* R/unit.tests.R: Fully qualify three functions from RUnit via ::
4+
15
2014-09-03 Kevin Ushey <[email protected]>
26

37
* inst/include/Rcpp/Environment.h: make new_env a free function

R/unit.tests.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ test <- function(output=if(file.exists("/tmp")) "/tmp" else getwd(),
6868
testDir <- system.file("unitTests", package = "Rcpp")
6969
}
7070

71-
testSuite <- defineTestSuite(name="Rcpp Unit Tests",
72-
dirs=testDir,
73-
testFuncRegexp = "^[Tt]est.+")
71+
testSuite <- RUnit::defineTestSuite(name="Rcpp Unit Tests",
72+
dirs=testDir,
73+
testFuncRegexp = "^[Tt]est.+")
7474

7575
## if someoone calls Rcpp::test(), he/she wants all tests
7676
Sys.setenv("RunAllRcppTests"="yes")
7777

7878
## Run tests
79-
tests <- runTestSuite(testSuite)
79+
tests <- RUnit::runTestSuite(testSuite)
8080

8181
## Print results
82-
printTextProtocol(tests)
82+
RUnit::printTextProtocol(tests)
8383

8484
return(tests)
8585
}

0 commit comments

Comments
 (0)