new tests

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-11-28 14:32:30 +01:00
commit 9390735af3
No known key found for this signature in database
2 changed files with 58 additions and 1 deletions

View file

@ -1,3 +1,4 @@
library(testthat)
test_that("redcap_wider() returns expected output", {
list <-
list(
@ -15,7 +16,7 @@ test_that("redcap_wider() returns expected output", {
expect_equal(
redcap_wider(list),
data.frame(
dplyr::tibble(
record_id = c(1, 2),
age_baseline = c(25, 26),
age_followup = c(27, 28),