tests/testthat/test_run.spcc.R

test_that('Class.', {

  files = list.files('files', '*wave', full.names = T)

  waves = lapply(files, load.wave)

  spcc_out = run.spcc(waves)

  expect_true(as.character(class(spcc_out))[1] == 'matrix')

})

test_that('Diagonal 0.', {

  files = list.files('files', '*wave', full.names = T)

  waves = lapply(files, load.wave)

  spcc_out = run.spcc(waves)

  expect_true(all(diag(spcc_out) == 0))

})

test_that('Mirrored.', {

  files = list.files('files', '*wave', full.names = T)

  waves = lapply(files, load.wave)

  spcc_out = run.spcc(waves)

  expect_equal(spcc_out[upper.tri(spcc_out)], spcc_out[lower.tri(spcc_out)])

})

Try the callsync package in your browser

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

callsync documentation built on May 29, 2024, 5:30 a.m.