Home
last modified time | relevance | path

Searched refs:minvalues (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_audioop.py23 minvalues = {w: -1 << (8 * w - 1) for w in (1, 2, 4)} variable
48 self.assertEqual(audioop.max(p(minvalues[w]), w), -minvalues[w])
49 self.assertEqual(audioop.max(datas[w], w), -minvalues[w])
60 self.assertEqual(audioop.minmax(p(minvalues[w]), w),
61 (minvalues[w], minvalues[w]))
63 (minvalues[w], maxvalues[w]))
71 maxvalues[w] - minvalues[w])
82 self.assertEqual(audioop.avg(p(minvalues[w], minvalues[w]), w),
83 minvalues[w])
105 self.assertAlmostEqual(audioop.rms(p(minvalues[w]) * 5, w),
[all …]
/external/python/cpython3/Lib/test/
Dtest_audioop.py14 minvalues = {w: -1 << (8 * w - 1) for w in (1, 2, 3, 4)} variable
43 self.assertEqual(audioop.max(p(minvalues[w]), w), -minvalues[w])
44 self.assertEqual(audioop.max(datas[w], w), -minvalues[w])
59 self.assertEqual(audioop.minmax(p(minvalues[w]), w),
60 (minvalues[w], minvalues[w]))
62 (minvalues[w], maxvalues[w]))
72 maxvalues[w] - minvalues[w])
85 self.assertEqual(audioop.avg(p(minvalues[w], minvalues[w]), w),
86 minvalues[w])
113 self.assertAlmostEqual(audioop.rms(p(minvalues[w]) * 5, w),
[all …]