Skip to content

Commit

Permalink
Changed tests output
Browse files Browse the repository at this point in the history
  • Loading branch information
vcabeli committed Jul 29, 2020
1 parent b1a89bc commit 20b4be0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions r-base/latest/tests/networks/neuro/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ cmapply <- function(FUN, ..., MoreArgs = NULL, SIMPLIFY = TRUE,
USE.NAMES = TRUE)
{
l <- expand.grid(..., stringsAsFactors=FALSE)
print(l)
test_result <- do.call(mapply, c(
list(FUN=FUN, MoreArgs = MoreArgs, SIMPLIFY = SIMPLIFY, USE.NAMES = USE.NAMES),
l
Expand Down Expand Up @@ -75,6 +74,9 @@ tests_results = cmapply(FUN=run_miic_neuro,
# Check results
if(any(tests_results$test_result==FALSE)){
message("Some tests failed : ")
message(tests_results[tests_results$test_result==FALSE,])
message(paste0(capture.output(tests_results[tests_results$test_result==FALSE,]), collapse = "\n"))
stop()
}
else{
message("All tests passed!")
}

0 comments on commit 20b4be0

Please sign in to comment.