tests/testthat/test_mol2conc.R

test_that("Mol --> conc", {
  expect_equal(
    mol2conc(
      mol = 1,
      mol_weight = 100,
      unit_conc = "g/L",
      unit_mol = "mol/L"
    )$value,
    100
  )
})
InsightRX/clinPK documentation built on April 24, 2024, 6:01 p.m.