tests/testthat/test-keep_values.R

test_that("keep_values works as expected", {
  input = c("A;var1", "B;var1", "C;var1")
  values = keep_values(input)

  # Check if the values are correctly extracted
  expect_equal(values, list("A", "B", "C"))
})

Try the vvshiny package in your browser

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

vvshiny documentation built on July 26, 2023, 5:50 p.m.