This function is a collection of expectations which ensure that the output of
reorganise
is formally and contentwise correct. It is used in
the tests of this package.
.expect_valid_table(
x = NULL,
units = 1,
variables = NULL,
groups = FALSE,
flags = FALSE
)
Either an error message of the invalid expectations, or the output of the last successful expectation.