tests/testthat/test-well_spikes_per_burst.R

test_that("well_spikes_per_burst output is a datatable", {
  # Load the dataset
  dataset <- well_spikes_per_burst(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.