Added test for minmax.

This commit is contained in:
Guido van Rossum 1996-12-20 03:13:06 +00:00
parent 152494aea2
commit 4fdb744f53
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ def testmax(data):
return 0 return 0
return 1 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): def testmaxpp(data):
if audioop.maxpp(data[0], 1) <> 0 or \ if audioop.maxpp(data[0], 1) <> 0 or \
audioop.maxpp(data[1], 2) <> 0 or \ audioop.maxpp(data[1], 2) <> 0 or \