Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_audioop.py13 maxvalues = {w: (1 << (8 * w - 1)) - 1 for w in (1, 2, 3, 4)} variable
42 self.assertEqual(audioop.max(p(maxvalues[w]), w), maxvalues[w])
57 self.assertEqual(audioop.minmax(p(maxvalues[w]), w),
58 (maxvalues[w], maxvalues[w]))
62 (minvalues[w], maxvalues[w]))
72 maxvalues[w] - minvalues[w])
83 self.assertEqual(audioop.avg(p(maxvalues[w], maxvalues[w]), w),
84 maxvalues[w])
111 self.assertAlmostEqual(audioop.rms(p(maxvalues[w]) * 5, w),
112 maxvalues[w], delta=1)
[all …]