tests/testthat/helper_fis.R

expect_rule <- function(rule, expected_premises, expected_conclusions) {
  actual <- quasi_label(rlang::enquo(rule))
  expect_equal(rule$premises, expected_premises, label = actual$lab)
  expect_equal(rule$conclusions, expected_conclusions, label = actual$lab)
}

Try the FisPro package in your browser

Any scripts or data that you put into this service are public.

FisPro documentation built on March 31, 2023, 7:22 p.m.