index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | extra/aubio/assert-almost.patch | 27 |
diff --git a/extra/aubio/assert-almost.patch b/extra/aubio/assert-almost.patch new file mode 100644 index 00000000..9951636e --- /dev/null +++ b/extra/aubio/assert-almost.patch @@ -0,0 +1,27 @@ +--- a/python/tests/test_hztomel.py 2019-03-07 15:05:44.804472410 +0100 ++++ b/python/tests/test_hztomel.py 2019-03-07 15:05:44.804472410 +0100 +@@ -17,10 +17,10 @@ + assert_equal(hztomel(0.), 0.) + assert_almost_equal(hztomel(400. / 3.), 2., decimal=5) + assert_almost_equal(hztomel(1000. / 3), 5.) +- assert_equal(hztomel(200.), 3.) ++ assert_almost_equal(hztomel(200.), 3.) + assert_almost_equal(hztomel(1000.), 15) +- assert_almost_equal(hztomel(6400), 42) +- assert_almost_equal(hztomel(40960), 69) ++ assert_almost_equal(hztomel(6400), 42, decimal=5) ++ assert_almost_equal(hztomel(40960), 69, decimal=5) + + for m in np.linspace(0, 1000, 100): + assert_almost_equal(hztomel(meltohz(m)) - m, 0, decimal=3) +--- a/python/tests/test_hztomel.py 2019-03-07 15:16:06.396709250 +0100 ++++ b/python/tests/test_hztomel.py 2019-03-07 15:16:06.396709250 +0100 +@@ -28,7 +28,7 @@ + def test_meltohz(self): + assert_equal(meltohz(0.), 0.) + assert_almost_equal(meltohz(2), 400. / 3., decimal=4) +- assert_equal(meltohz(3.), 200.) ++ assert_almost_equal(meltohz(3.), 200., decimal=5) + assert_almost_equal(meltohz(5), 1000. / 3., decimal=4) + assert_almost_equal(meltohz(15), 1000., decimal=4) + assert_almost_equal(meltohz(42), 6400., decimal=2) |