(self)
| 178 | self.assertAllEqual(manual_encode, encode) |
| 179 | |
| 180 | def testEncodeNegativeChannelSize(self): |
| 181 | np.random.seed(1944) # For repeatability of test. |
| 182 | |
| 183 | channels = -256 |
| 184 | number_of_samples = 1024 |
| 185 | x = np.zeros(number_of_samples).astype(np.float32) |
| 186 | manual_encode = manual_mu_law_encode(x, channels) |
| 187 | |
| 188 | with self.test_session() as sess: |
| 189 | self.assertRaises(TypeError, sess.run(mu_law_encode(x, channels))) |
| 190 | |
| 191 | def testDecodeUniformRandomNoise(self): |
| 192 | np.random.seed(1944) # For repeatability of test. |
nothing calls this directly
no test coverage detected