Skip to content

Commit

Permalink
Add test for package version and run it before the main test so as no…
Browse files Browse the repository at this point in the history
…t to confuse the seed report.
  • Loading branch information
aadler committed Feb 1, 2024
1 parent 1fa0374 commit ab25fb9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions inst/tinytest/test_1version.R
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.

0 comments on commit ab25fb9

Please sign in to comment.