tests/testthat/test-dimension_schema.R

test_that("dimension_schema() creates a fact schema", {
  expect_equal(
    d <- dimension_schema(
      name = "a",
      attributes = c(
        "b",
        "c",
        "d"
      )
    ),
    structure(list(name = "a", attributes = c("b", "c", "d")), class = "dimension_schema")
  )
})

Try the rolap package in your browser

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

rolap documentation built on May 29, 2024, 10:38 a.m.