From: Paul Brossier Date: Wed, 11 Jul 2012 20:41:04 +0000 (-0600) Subject: test_fvec.py: zero_crossing_rate almost equal X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4afa448e6d9f82c28c2ebb2cb098d9f414a322d1;p=aubio.git test_fvec.py: zero_crossing_rate almost equal --- diff --git a/interfaces/python/test_fvec.py b/interfaces/python/test_fvec.py index b374c4e1..80e8fceb 100644 --- a/interfaces/python/test_fvec.py +++ b/interfaces/python/test_fvec.py @@ -85,7 +85,7 @@ class aubio_fvec_test_case(TestCase): def test_zero_crossing_rate(self): a = array([0,1,-1], dtype='float32') - self.assertEquals (zero_crossing_rate(a), 1./3 ) + assert_almost_equal (zero_crossing_rate(a), 1./3. ) a = array([0.]*100, dtype='float32') self.assertEquals (zero_crossing_rate(a), 0 ) a = array([-1.]*100, dtype='float32')