From cb6db3b61cc820d35abc836771dc425d3ae8b12b Mon Sep 17 00:00:00 2001 From: Gregory Jefferis Date: Thu, 14 May 2015 14:43:23 +0100 Subject: [PATCH] update test expectation based to include NAs * points that fail to transform (because they are outside template brain * see https://github.com/jefferis/nat/issues/227 --- tests/testthat/test-transformation.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-transformation.r b/tests/testthat/test-transformation.r index b032f49..3a0e9f2 100644 --- a/tests/testthat/test-transformation.r +++ b/tests/testthat/test-transformation.r @@ -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)