-
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.
Rename and add "other package" tests.
- Loading branch information
Showing
2 changed files
with
20 additions
and
10 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,20 @@ | ||
# Copyright Avraham Adler (c) 2024 | ||
# SPDX-License-Identifier: MPL-2.0+ | ||
|
||
pV <- packageVersion("MBBEFDLite") | ||
myOtherPkgs <- c("Delaporte", "lamW", "Pade", "revss", "minimaxApprox") | ||
|
||
|
||
# Test CITATION has most recent package version | ||
expect_true(any(grepl(pV, toBibtex(citation("MBBEFDLite")), fixed = TRUE))) | ||
|
||
# Test NEWS has most recent package version | ||
expect_true(any(grepl(pV, news(package = "MBBEFDLite"), fixed = TRUE))) | ||
|
||
# Test that CITATION doesn't contain the name of any other of my packages | ||
expect_false(any(sapply(myOtherPkgs, grepl, | ||
x = toBibtex(citation("MBBEFDLite"), fixed = TRUE)))) | ||
|
||
# Test that NEWS doesn't contain the name of any other of my packages | ||
expect_false(any(sapply(myOtherPkgs, grepl, | ||
x = news(package = "MBBEFDLite"), fixed = TRUE))) |
This file was deleted.
Oops, something went wrong.