Changeset 4afa448e


Ignore:
Timestamp:
Jul 11, 2012, 10:41:04 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
299c2b0
Parents:
012b324
Message:

test_fvec.py: zero_crossing_rate almost equal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/test_fvec.py

    r012b324 r4afa448e  
    8686    def test_zero_crossing_rate(self):
    8787        a = array([0,1,-1], dtype='float32')
    88         self.assertEquals (zero_crossing_rate(a), 1./3 )
     88        assert_almost_equal (zero_crossing_rate(a), 1./3. )
    8989        a = array([0.]*100, dtype='float32')
    9090        self.assertEquals (zero_crossing_rate(a), 0 )
Note: See TracChangeset for help on using the changeset viewer.