Skip to content

Commit

Permalink
Fix tests for Synonym or similar terms
Browse files Browse the repository at this point in the history
  • Loading branch information
kellijohnson-NOAA committed Oct 16, 2023
1 parent 838d6ab commit 3a3a6a7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion inst/extdata/testthat_data/validate_Rd_good_input.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/extdata/testthat_data/validate_Rd_missing_items.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/extdata/testthat_data/validate_Rd_no_alternatives.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/extdata/testthat_data/validate_Rd_no_description.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/extdata/testthat_data/validate_Rd_no_examples.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/extdata/testthat_data/validate_Rd_no_rationale.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/extdata/testthat_data/validate_Rd_no_units.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-validate-Rd.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test_that("validate_Rd validators work as expected", {

Rd_file <- file.path(validate_Rd_path, "validate_Rd_no_alternatives.Rd")
expect_error(validate_Rd(Rd_file),
regexp = "Alternatives are not provided. Use NA if there is no input for alternatives.")
regexp = "Synonym or similar terms are not provided. Use NA if there is no input for synonym or similar terms.")

Rd_file <- file.path(validate_Rd_path, "validate_Rd_no_range_of_possible_values.Rd")
expect_error(validate_Rd(Rd_file),
Expand Down

0 comments on commit 3a3a6a7

Please sign in to comment.