From: Guido van Rossum Date: Fri, 14 Feb 1997 15:58:00 +0000 (+0000) Subject: Added test for ratecv (from Sjoerd, reformatted). X-Git-Tag: v1.5a1~383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8504e276496191189a52dc7fbb3740d6d3642c6;p=python Added test for ratecv (from Sjoerd, reformatted). --- diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py index 74f72a8156..e966833853 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'