tests/testthat/test_helper.R

# devtools::load_all()
library(testthat)



test_that('MakeRotMat works', {
  x1 <- c(1, 0, 0)
  x2 <- c(-1, 0, 0)
  x3 <- c(-0.99, sqrt(1 - 0.99^2), 0)

  expect_warning(MakeRotMat(x1, x2), 'Rotation between podal points is arbitrary')

  R2 <- MakeRotMat(x1, x3)

})

Try the manifold package in your browser

Any scripts or data that you put into this service are public.

manifold documentation built on Oct. 4, 2022, 5:06 p.m.