mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-22 13:30:23 +01:00
16 lines
460 B
R
16 lines
460 B
R
|
|
|
|
# Check the RCurl export ---------------------------------------------------
|
|
test_that("JSON character vector from RCurl matches reference", {
|
|
metadata <-
|
|
jsonlite::fromJSON(get_data_location("ExampleProject_metadata.json"))
|
|
|
|
records <-
|
|
jsonlite::fromJSON(get_data_location("ExampleProject_records.json"))
|
|
|
|
redcap_output_json1 <- REDCap_split(records, metadata)
|
|
|
|
expect_known_hash(redcap_output_json1, "2c8b6531597182af1248f92124161e0c")
|
|
|
|
})
|