tests/testthat/test-define_fact.R

context("test define_fact")

test_that("define_fact works", {
  sd <- dimensional_model()
  sd <- define_fact(sd,
                    name = "mrs_age",
                    measures = c("Deaths"))
  expect_equal(sd$fact, dm_mrs_age$fact)
})

Try the starschemar package in your browser

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

starschemar documentation built on Nov. 11, 2023, 5:09 p.m.