tests/testthat/test-sfcr_set.R

test_that("Error if invalid formulas", {
  expect_error(sfcr_set(W ~ 1, alpha1 ~ 0.6, G_d = 20, alpha2 ~ 0.4, theta ~ 0.2),
               "Invalid arguments. Please use the R formula syntax \\(`~` instead of `=`\\) to separate the equations.")
})


test_that("Error if invalid formulas", {
  expect_error(sfcr_set(G_d ~ 20, W ~ 1, "alpha1", alpha2 ~ 0.4, theta ~ 0.2),
               "Invalid arguments. Please use the R formula syntax \\(`~` instead of `=`\\) to separate the equations.")
})
joaomacalos/sfcr documentation built on Dec. 30, 2021, 9:54 a.m.