timings/7a8a49d0b763c0abed4eae1c1e08bbeb3c2c928d/grattan/tests/testthat/test_LITO.R

context("LITO")

test_that("Error handling", {
  expect_error(lito(30e3, max_lito = c(445, 450)))
})

test_that("LITO", {
  expect_equal(lito(income = c(25e3, 30e3), 
                    max_lito = c(400, 500), 
                    lito_taper = c(0.015, 0.015), 
                    min_bracket = c(37000, 37000)),
               c(400, 500))
})
HughParsonage/grattan documentation built on April 1, 2024, 4:10 a.m.