Added test for ratecv (from Sjoerd, reformatted).

This commit is contained in:
Guido van Rossum 1997-02-14 15:58:00 +00:00
parent e8811f85ed
commit c8504e2764
1 changed files with 9 additions and 0 deletions

View File

@ -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'