-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for package version and run it before the main test so as no…
…t to confuse the seed report.
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 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,14 @@ | ||
# Copyright Avraham Adler (c) 2023 | ||
# SPDX-License-Identifier: MPL-2.0+ | ||
|
||
pV <- packageVersion("revss") | ||
|
||
# Test CITATION has most recent package version | ||
expect_true(any(grepl(pV, toBibtex(citation("revss")), fixed = TRUE))) | ||
|
||
# Test NEWS has most recent package version | ||
expect_true(any(grepl(pV, news(package = "revss"), fixed = TRUE))) | ||
|
||
# Test that NEWS has an entry with DESCRIPTION's Date | ||
expect_true(any(grepl(packageDate("revss"), | ||
news(package = "revss"), fixed = TRUE))) |
File renamed without changes.