tests/testthat/test-parser.R

test_that("The parser parses", {

  input <- system.file("implications", "ex_implications",
                       package = "fcaR")
  expect_error(imps <- parse_implications(input), NA)

  expect_true(inherits(imps, "ImplicationSet"))
  expect_equal(imps$cardinality(), 3)
  expect_equal(imps$get_attributes(), letters[1:4])

})

Try the fcaR package in your browser

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

fcaR documentation built on April 28, 2023, 1:11 a.m.