tests/testthat/test_updateBlocksize.R

library(GGIR)
context("updateBlocksize")
test_that("updateBlocksize works is able to recognize available memory and update blocksize", {
  currenttime = Sys.time()
  out = updateBlocksize(blocksize = 1000, 
                        bsc_qc=data.frame(time=as.character(currenttime), 
                                          size=2, stringsAsFactors = FALSE))
  ra = round(out$blocksize/100)
  eval = (ra == 10 | ra == 8)
  expect_equal(eval,TRUE)
})

Try the GGIR package in your browser

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

GGIR documentation built on Oct. 17, 2023, 1:12 a.m.