Skip to content

Commit 0211d95

Browse files
committed
add tests
1 parent 11cda08 commit 0211d95

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ before_install:
1515
install:
1616
- pip install .
1717

18+
script: pytest
19+
1820
deploy:
1921
provider: pypi
2022
distributions: "sdist bdist_wheel"

tests/test_echo_canceller.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
import wave
3+
import sys
4+
from speexdsp import EchoCanceller
5+
import pytest
6+
7+
8+
def test_echo_canceller():
9+
frames = 64
10+
filter_length = 256
11+
echo_canceller = EchoCanceller.create(64, 256, 16000)
12+
13+
chunk = '\0\0' * frames
14+
for _ in range(16):
15+
out = echo_canceller.process(chunk, chunk)

0 commit comments

Comments
 (0)