]> granicus.if.org Git - python/commitdiff
Added test for ratecv (from Sjoerd, reformatted).
authorGuido van Rossum <guido@python.org>
Fri, 14 Feb 1997 15:58:00 +0000 (15:58 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Feb 1997 15:58:00 +0000 (15:58 +0000)
Lib/test/test_audioop.py

index 74f72a8156506adf21f4fad3f7c1aa6613e0999d..e9668338536f151c5f6143a6870a489619f07e95 100644 (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'