summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-20 03:13:06 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-20 03:13:06 (GMT)
commit4fdb744f53c88d8a147d10b5852b5ab360aba0f8 (patch)
tree8d9e472ca31d1178a3c76620a3c32440604df12b /Lib/test
parent152494aea24669a3d74460fa460a4ed45696bc75 (diff)
downloadcpython-4fdb744f53c88d8a147d10b5852b5ab360aba0f8.zip
cpython-4fdb744f53c88d8a147d10b5852b5ab360aba0f8.tar.gz
cpython-4fdb744f53c88d8a147d10b5852b5ab360aba0f8.tar.bz2
Added test for minmax.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_audioop.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py
index 3acf1bf..5132f6a 100644
--- a/Lib/test/test_audioop.py
+++ b/Lib/test/test_audioop.py
@@ -23,6 +23,13 @@ def testmax(data):
return 0
return 1
+def testminmax(data):
+ if audioop.minmax(data[0], 1) <> (0, 2) or \
+ audioop.minmax(data[1], 2) <> (0, 2) or \
+ audioop.minmax(data[2], 4) <> (0, 2):
+ return 0
+ return 1
+
def testmaxpp(data):
if audioop.maxpp(data[0], 1) <> 0 or \
audioop.maxpp(data[1], 2) <> 0 or \