tests/testthat/test-define-help.R

library(yspec)
library(testthat)

context("test-define-help")

test_that("values eq decode output [YSP-TEST-0030]", {
  spec <- ys_help$spec()
  ans <- yspec:::pack_codes(spec$SEQ)
  expect_equal(ans, "0 = observation, 1 = dose")
  spec <- yspec:::test_spec_test("value-eq-decode.yaml")
  ans <- yspec:::pack_codes(spec$COL)
  expect_equal(ans, "a = e, b, c = z")
})
metrumresearchgroup/yspec documentation built on May 24, 2024, 12:48 a.m.