Skip to content

Commit 5a96791

Browse files
committed
fixed test-trialmaster-simple.R
1 parent db1c7c7 commit 5a96791

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/testthat/_snaps/trialmaster-simple.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Read a TM archive
22

3+
Code
4+
getOption("width")
5+
Output
6+
[1] 125
37
Code
48
filename = test_path("CRF_Dan_Export_SAS_XPORT_2022_08_25_15_16.zip")
59
w = read_trialmaster(filename, use_cache = FALSE, verbose = 9)
@@ -29,7 +33,7 @@
2933
Code
3034
w$.lookup
3135
Output
32-
── Lookup table - CRF (extraction of 2022-08-25) - EDCimport v0.0.0 ────────────────────────────────────────────────────
36+
── Lookup table - CRF (extraction of 2022-08-25) - EDCimport v0.0.0 ─────────────────────────────────────────────────────────
3337
dataset nrow ncol n_id rows_per_id crfname
3438
<chr> <dbl> <dbl> <int> <dbl> <chr>
3539
1 site 1 33 0 NA Trial Site Setup & Information

tests/testthat/test-trialmaster-simple.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ test_that("Read a TM archive", {
1414
str_replace_all("v(\\d+\\.?)+", "v0.0.0") #EDCimport version
1515
}
1616
expect_snapshot(transform=f, {
17+
getOption("width")
18+
1719
#read
1820
filename = test_path("CRF_Dan_Export_SAS_XPORT_2022_08_25_15_16.zip")
1921
w = read_trialmaster(filename, use_cache=FALSE, verbose=9)

0 commit comments

Comments
 (0)