Skip to content

Commit

Permalink
update test expectation based to include NAs
Browse files Browse the repository at this point in the history
* points that fail to transform
  (because they are outside template brain
* see natverse/nat#227
  • Loading branch information
jefferis committed May 14, 2015
1 parent f13d2a2 commit cb6db3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-transformation.r
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(is.null(cmtk.bindir())){
test_that("can mirror FCWB", {
points.mirror <- mirror_brain(points, FCWB)

points.mirrorexp <- matrix(c(533.852385, 453.736535, 29.7033156, 110.009148, 29.9916627, 107), ncol=3)
points.mirrorexp <- matrix(c(533.852385, NA, 29.7033156, NA, 29.9916627, NA), ncol=3)
colnames(points.mirrorexp) <- c("X", "Y", "Z")

expect_equal(points.mirror, points.mirrorexp)
Expand Down

0 comments on commit cb6db3b

Please sign in to comment.