-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test-get_affiliation * test-acronyms The mix of warning and return value was causing a warning in the test rather than a pass status. Also, latex was not installed so the acronyms could not be tested. Codecoverage needs all tests to be passing.
- Loading branch information
1 parent
117a78f
commit 85cf12c
Showing
4 changed files
with
22 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Setup for the unit tests | ||
|
||
# Check for lualatex | ||
if (!requireNamespace("tinytex", quietly = TRUE)) { | ||
install.packages("tinytex") | ||
} | ||
if (any(tinytex:::which_bin(c("tlmgr", "pdftex", "xetex", "luatex")) == "")) { | ||
tinytex::install_tinytex(bundle = "TinyTex") | ||
} | ||
if (!tinytex::check_installed("glossaries")) { | ||
tinytex::tlmgr_install("glossaries") | ||
} |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
test_that("Unknown author returns NA", { | ||
expect_true(is.na(get_affiliation("Kelli Johnson"))) | ||
expect_warning( | ||
is.na(get_affiliation("Kelli Johnson")) | ||
) | ||
expect_true( | ||
suppressWarnings(is.na(get_affiliation("Kelli Johnson"))) | ||
) | ||
}) |
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