tests/testthat/test-vst02.R

# vst02 functions ----

test_that("vst02 functions with default argument value return expected result with test data", {
  pre_data <- vst02_pre(syn_data)
  raw_res <- vst02_1_main(pre_data)
  res <- vst02_post(raw_res)
  expect_snapshot(cat(export_as_txt(res, lpp = 100)))
})

test_that("vst02 functions return expected result with test data when excluding subject with baseline abnormality", {
  skip_on_os("windows")
  pre_data <- vst02_pre(syn_data)
  raw_res <- vst02_2_main(pre_data)
  res <- vst02_post(raw_res)
  expect_snapshot(cat(export_as_txt(res, lpp = 100)))
})

Try the chevron package in your browser

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

chevron documentation built on June 20, 2025, 5:08 p.m.