expect_registry: Does the object match the registry, and should it match?

View source: R/test-helpers.R

expect_registryR Documentation

Does the object match the registry, and should it match?

Description

Test expectation of whether a TRN come from a particular registry using for known true TRNs and TRN errors.

Usage

expect_registry(object, reg, match_expected = TRUE)

Arguments

object

Character. Text to test

reg

Character. Name of registry to test object against.

match_expected

Logical. Whether object should match registry. 'TRUE' for true positives. 'FALSE' for true negatives.

Examples

## Not run: expect_registry("PER-093-09", "REPEC", match_expected = TRUE)
## Not run: expect_registry("cucumber", "REPEC", match_expected = TRUE)
## Not run: expect_registry("cucumber", "REPEC", match_expected = FALSE)
## Not run: expect_registry("PER-093-09", "REPEC", match_expected = FALSE)

maia-sh/ctregistries documentation built on July 20, 2024, 8:08 p.m.