tests/testthat/test-well_number_of_bursts.R

test_that("well_number_of_bursts output is a datatable", {
  # Load the dataset
  dataset <- well_number_of_bursts(data = input_MEA_data,
                                 time_lower_bound = 0,
                                 time_upper_bound = 30,
                                 recording_identifier = "burst_recording_1")

  expect_equal(data.table::is.data.table(dataset), TRUE)
})

Try the MEAanalysis package in your browser

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

MEAanalysis documentation built on June 8, 2025, 1:27 p.m.