summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-02-14 15:58:00 (GMT)
committerGuido van Rossum <guido@python.org>1997-02-14 15:58:00 (GMT)
commitc8504e276496191189a52dc7fbb3740d6d3642c6 (patch)
tree9eaf0e9fc76690d3648e9edc4a809ccdd31592fa /Lib/test
parente8811f85ed7c1a1087ee371f236e33cf4f159568 (diff)
downloadcpython-c8504e276496191189a52dc7fbb3740d6d3642c6.zip
cpython-c8504e276496191189a52dc7fbb3740d6d3642c6.tar.gz
cpython-c8504e276496191189a52dc7fbb3740d6d3642c6.tar.bz2
Added test for ratecv (from Sjoerd, reformatted).
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_audioop.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py
index 74f72a8..e966833 100644
--- a/Lib/test/test_audioop.py
+++ b/Lib/test/test_audioop.py
@@ -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'