forked from pharmaR/riskmetric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update export_help tests to expect_equal
- Loading branch information
1 parent
e579390
commit 1e062ae
Showing
3 changed files
with
19 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
# Commenting these out until this is implemented for sourced packages | ||
test_that("assess_export_help returns expected result for source packages", { | ||
expect_true(assess_source_good$export_help[[1]]) | ||
expect_true(assess_install_good$export_help[[1]]) | ||
expect_true(assess_source_bad$export_help[[1]]) | ||
|
||
expect_equal(unname(assess_source_good$export_help), c(TRUE)) | ||
expect_equal(unname(assess_install_good$export_help), c(TRUE)) | ||
|
||
expect_equal(unname(assess_source_bad$export_help), c(FALSE, TRUE)) | ||
expect_equal(unname(assess_install_bad$export_help), c(FALSE, TRUE)) | ||
|
||
expect_true(assess_stdlibs_install$export_help[[1]][[1]]) | ||
|
||
expect_true(is.numeric(score_install_good$export_help)) | ||
expect_true(is.numeric(score_source_bad$export_help)) | ||
expect_true(is.numeric(score_source_good$export_help)) | ||
expect_equal(score_install_good$export_help[[1]], 1) | ||
expect_equal(score_install_bad$export_help[[1]], 0.5) | ||
expect_equal(score_source_bad$export_help[[1]], 0.5) | ||
expoct_equal(score_source_good$export_help[[1]], 1) | ||
}) |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(hello_work_test_2) | ||
export(hello_world_test) |
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