diff options
author | Guido van Rossum <guido@python.org> | 1997-02-14 15:58:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-02-14 15:58:00 (GMT) |
commit | c8504e276496191189a52dc7fbb3740d6d3642c6 (patch) | |
tree | 9eaf0e9fc76690d3648e9edc4a809ccdd31592fa /Lib/test/test_audioop.py | |
parent | e8811f85ed7c1a1087ee371f236e33cf4f159568 (diff) | |
download | cpython-c8504e276496191189a52dc7fbb3740d6d3642c6.zip cpython-c8504e276496191189a52dc7fbb3740d6d3642c6.tar.gz cpython-c8504e276496191189a52dc7fbb3740d6d3642c6.tar.bz2 |
Added test for ratecv (from Sjoerd, reformatted).
Diffstat (limited to 'Lib/test/test_audioop.py')
-rw-r--r-- | Lib/test/test_audioop.py | 9 |
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' |