History

python/tests/test_dct.py: pass with fftw

Paul Brossier committed 9 years ago

Commit b99e2a51 parent e7556a11 file · +4 −3Browse files

Showing the changes to python/tests (1 of 1 file). Show all

Unified · Split

python/tests/test_dct.py+4−3
@@ -40,7 +40,7 @@ class aubio_dct(TestCase): · 39 unmodified lines
4040 a_in[1] = 0
4141 a_in[3] = np.pi
4242 a_expected = aubio.fvec(precomputed_some_ones)
43− assert_almost_equal(a_dct(a_in), a_expected, decimal=7)
43+ assert_almost_equal(a_dct(a_in), a_expected, decimal=6)
4444
4545 def test_reconstruction(self):
4646 """ test that some_ones vector can be recontructed """
@@ -60,8 +60,9 @@ class aubio_dct(TestCase): · 13 unmodified lines
6060 def test_wrong_size(self):
6161 """ test that creation fails with a non power-of-two size """
6262 # supports for non 2** fft sizes only when compiled with fftw3
63+ size = 13
6364 try:
6465 with self.assertRaises(RuntimeError):
65− aubio.dct(13)
66+ aubio.dct(size)
6667 except AssertionError:
67− self.skipTest('creating aubio.dct with size %d did not fail' % win_s)
68+ self.skipTest('creating aubio.dct with size %d did not fail' % size)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t