Skip to content

Commit

Permalink
Test .spectrogram_mmad_power()
Browse files Browse the repository at this point in the history
  • Loading branch information
edwbaker committed Aug 10, 2024
1 parent eac8ad9 commit 591018c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/testthat/test-scikit-maad-classes.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
test_that(".spectrogram_maad_power works as expected", {
f <- f <- system.file("extdata", "AUDIOMOTH.WAV", package="sonicscrewdriver")
w <- readWave(f)

spec <- .spectrogram_maad_power(w)
expect_s4_class(spec, "spectrogram_maad")

spec <- .spectrogram_maad_power(tagWave(w))
expect_s4_class(spec, "spectrogram_maad")

w <- tuneR::WaveMC(tuneR::stereo(w,w))
spec <- .spectrogram_maad_power(w)
expect_s4_class(spec, "spectrogram_maad")

spec <- .spectrogram_maad_power(maad_spectrogram(w))
expect_s4_class(spec, "spectrogram_maad")
})

0 comments on commit 591018c

Please sign in to comment.