tests/testthat/test_rscimark.R

test_that("rscimark", {
  expect_scimark_output = function(x) {
    expect_true(is.numeric(x))
    expect_true(length(x) == 6L)
    expect_true(!any(is.na(x) | is.nan(x)))
    expect_true(!is.null(names(x)))
  }

  y = rscimark(minimum.time = 0.2)
  expect_scimark_output(y)

  y = rscimark(large = TRUE, minimum.time = 0.2)
  expect_scimark_output(y)
})

Try the rscimark package in your browser

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

rscimark documentation built on May 1, 2019, 9:40 p.m.