Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -31,7 +31,7 @@ class aubio_dct(TestCase): · 30 unmodified lines | |||
| 31 | a_dct = aubio.dct(8) | 31 | a_dct = aubio.dct(8) |
| 32 | a_in = np.arange(8).astype(aubio.float_type) | 32 | a_in = np.arange(8).astype(aubio.float_type) |
| 33 | a_expected = aubio.fvec(precomputed_arange) | 33 | a_expected = aubio.fvec(precomputed_arange) |
| 34 | assert_almost_equal(a_dct(a_in), a_expected, decimal=6) | 34 | assert_almost_equal(a_dct(a_in), a_expected, decimal=5) |
| 35 | 35 | ||
| 36 | def test_some_ones(self): | 36 | def test_some_ones(self): |
| 37 | """ test that dct(somevector) is computed correctly """ | 37 | """ test that dct(somevector) is computed correctly """ |