Skip to content

Commit

Permalink
Check attribute names first, for easier diagnosis of failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jonclayden committed Apr 24, 2019
1 parent a03f03a commit 6719fc5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file added tests/testthat/attrib_names.rds
Binary file not shown.
1 change: 1 addition & 0 deletions tests/testthat/test-05-read.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test_that("DICOM-reading code works", {
# Check all attributes
attributes <- attributes(d[[i]])
attrNames <- sort(setdiff(names(attributes), ".nifti_image_ptr"))
expect_known_value(attrNames, "attrib_names.rds", update=FALSE)
expect_known_value(attributes[attrNames], "attributes.rds", update=FALSE)

origin <- RNifti::worldToVoxel(c(0,0,0), d[[i]])
Expand Down

0 comments on commit 6719fc5

Please sign in to comment.