Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
beginnings of testing system, version bump
- Loading branch information
David Lawrence Miller
committed
May 26, 2018
1 parent
c65ca90
commit 502a822
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
library(testthat) | ||
library(readdst) | ||
|
||
test_check("readdst") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# this just tests all the projects that we ship with readdst | ||
library(readdst) | ||
# we expect everything to work! | ||
|
||
# do a pretty printer... | ||
this_project <- system.file("Stratify-solutions", package="readdst") | ||
this_project <- paste0(this_project, "/Stratify\\ solutions") | ||
|
||
#for(this_project in projects){ | ||
context(this_project) | ||
|
||
cc <- convert_project(this_project) | ||
for(i in seq_along(cc)){ | ||
|
||
|
||
result <- test_stats(cc[[i]], 1:2) | ||
|
||
test_that(names(cc)[i],{ | ||
for(j in 1:nrow(result)){ | ||
expect_equal(result$Pass[j], "✓", info=result$Statistic[[j]]) | ||
} | ||
}) | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
#} |