Nothing
test_that("basic use", {
testthat::expect_true(
are_max_rates_gt_rates(
rates = list(
immig_rate = 0.1,
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = 0.2,
ext_max_rate = 0.3,
ana_max_rate = 0.4,
clado_max_rate = 0.5
)
)
)
testthat::expect_true(
are_max_rates_gt_rates(
rates = list(
immig_rate = 0.1,
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = 0.1,
ext_max_rate = 0.2,
ana_max_rate = 0.3,
clado_max_rate = 0.4
)
)
)
})
test_that("check returns FALSE when wrong", {
testthat::expect_false(
are_max_rates_gt_rates(
rates = list(
immig_rate = 0.1,
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = 0.02,
ext_max_rate = 0.3,
ana_max_rate = 0.4,
clado_max_rate = 0.5
)
)
)
testthat::expect_false(
are_max_rates_gt_rates(
rates = list(
immig_rate = 0.1,
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = 0.2,
ext_max_rate = 0.03,
ana_max_rate = 0.4,
clado_max_rate = 0.5
)
)
)
testthat::expect_false(
are_max_rates_gt_rates(
rates = list(
immig_rate = 0.1,
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = 0.2,
ext_max_rate = 0.3,
ana_max_rate = 0.04,
clado_max_rate = 0.5
)
)
)
testthat::expect_false(
are_max_rates_gt_rates(
rates = list(
immig_rate = 0.1,
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = 0.2,
ext_max_rate = 0.3,
ana_max_rate = 0.4,
clado_max_rate = 0.05
)
)
)
testthat::expect_false(
are_max_rates_gt_rates(
rates = list(
immig_rate = "nonsense",
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = 0.2,
ext_max_rate = 0.3,
ana_max_rate = 0.4,
clado_max_rate = 0.05
)
)
)
testthat::expect_false(
are_max_rates_gt_rates(
rates = list(
immig_rate = 0.1,
ext_rate = 0.2,
ana_rate = 0.3,
clado_rate = 0.4
),
max_rates = list(
immig_max_rate = "nonsense",
ext_max_rate = 0.3,
ana_max_rate = 0.4,
clado_max_rate = 0.05
)
)
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.