From 4fdb744f53c88d8a147d10b5852b5ab360aba0f8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 20 Dec 1996 03:13:06 +0000 Subject: [PATCH] Added test for minmax. --- Lib/test/test_audioop.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py index 3acf1bf0700..5132f6afde4 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 \