Skip to content

Commit

Permalink
test: add tests for resample
Browse files Browse the repository at this point in the history
  • Loading branch information
ymtoo committed Aug 25, 2023
1 parent 1b6ce96 commit 843400b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ end
@test framerate(x1) == 3 * framerate(x) / 2
x1 = resample(x, 3//2)
@test framerate(x1) == 3 * framerate(x) / 2
x1 = resample([x x], 3//2; dims=1)
@test framerate(x1) == 3 * framerate(x) / 2
x1 = resample([x x], 3//2, [1,1,1]; dims=1)
@test framerate(x1) == 3 * framerate(x) / 2

x = signal(randn(rng, 100), 10kHz)
x1 = signal(vcat(zeros(1000), x/2, zeros(1000)), 10kHz)
Expand Down

0 comments on commit 843400b

Please sign in to comment.