tests/testthat/test-matsuda_index.R

context("test-matsuda_index.R")

test_that("fails if glu or ins have the wrong size", {
  expect_error(matsuda_index(
    glu = c(1, 2, 3, 4, 5),
    ins = c(1, 2, 3)
  ))

  expect_error(matsuda_index(
    glu = c(1, 2),
    ins = c(1, 2)
  ))
})
jcpsantiago/gmi documentation built on May 7, 2019, 6:07 a.m.