tests/testthat/test-simple_chroma.R

context("simple_chroma")

library(testthat)
x <- simple_chroma(peaks = c(10,20,25), sd = c(0.1,0.2,0.3))
with(x, plot(x,y))
x <- find_peaks(x)

test_that("output is correct", {
    expect_equal(order(x[["y"]]),c(3,2,1))

})
mastoffel/GCalignR documentation built on Feb. 4, 2024, 2:39 p.m.