tests/testthat/test_QuEST.R

test_that("sort", {

  y <- runif(30)
  x <- matrix(runif(30 * 100), 30, 100)

  expect_equal(nrow(q.sort(x, y)), 30)
  expect_equal(ncol(q.sort(x, y)), 100)
})

Try the QuESTr package in your browser

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

QuESTr documentation built on March 18, 2022, 5:09 p.m.