mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Added test for ratecv (from Sjoerd, reformatted).
This commit is contained in:
parent
e8811f85ed
commit
c8504e2764
1 changed files with 9 additions and 0 deletions
|
@ -169,6 +169,15 @@ def testmul(data):
|
|||
return 0
|
||||
return 1
|
||||
|
||||
def testratecv(data):
|
||||
if verbose:
|
||||
print 'ratecv'
|
||||
state = (-8000, ((256, 512),))
|
||||
if audioop.ratecv(data[0], 1, 1, 8000, 16000, state) != \
|
||||
('\001\000\000\001\001\002', state):
|
||||
return 0
|
||||
return 1
|
||||
|
||||
def testreverse(data):
|
||||
if verbose:
|
||||
print 'reverse'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue