tests/testthat/test-spec_res.R

data("raman_hdpe")

test_that("spec_res() gives correct output", {
  spec_res(raman_hdpe$wavenumber) |> round(2) |> expect_equal(2.54)
})

Try the OpenSpecy package in your browser

Any scripts or data that you put into this service are public.

OpenSpecy documentation built on Nov. 26, 2023, 1:09 a.m.