Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8504e2

Browse files
committed
Added test for ratecv (from Sjoerd, reformatted).
1 parent e8811f8 commit c8504e2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lib/test/test_audioop.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,15 @@ def testmul(data):
169169
return 0
170170
return 1
171171

172+
def testratecv(data):
173+
if verbose:
174+
print 'ratecv'
175+
state = (-8000, ((256, 512),))
176+
if audioop.ratecv(data[0], 1, 1, 8000, 16000, state) != \
177+
('\001\000\000\001\001\002', state):
178+
return 0
179+
return 1
180+
172181
def testreverse(data):
173182
if verbose:
174183
print 'reverse'

0 commit comments

Comments
 (0)