Changeset c721874 for tests


Ignore:
Timestamp:
Nov 3, 2007, 7:03:04 PM (13 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:
d4a6eb9
Parents:
1da7e08 (diff), 2d8880d5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge changes from banane, more fixes

Location:
tests
Files:
5 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • tests/python/fvec.py

    r1da7e08 rc721874  
    2222    for index in range(buf_size):
    2323      for channel in range(channels):
    24         self.assertEqual(fvec_read_sample(self.vector,channel,index),0.)
     24        self.assertEqual(0., fvec_read_sample(self.vector,channel,index))
    2525
    2626  def test_fvec_write_sample(self):
     
    3131    for index in range(buf_size):
    3232      for channel in range(channels):
    33         self.assertEqual(fvec_read_sample(self.vector,channel,index),1.)
     33        self.assertEqual(1., fvec_read_sample(self.vector,channel,index))
    3434
    3535if __name__ == '__main__':
  • tests/src/Makefile.am

    r1da7e08 rc721874  
    1010        test-hist \
    1111        test-scale \
    12         test-sample \
     12        test-cvec \
     13        test-fvec \
    1314        test-window \
    1415        test-filter \
  • tests/src/test-cvec.c

    r1da7e08 rc721874  
    55        uint_t win_s      = 1024;                       /* window size */
    66        uint_t channels   = 1;                          /* number of channel */
    7         fvec_t * in       = new_fvec (win_s, channels); /* input buffer */
    87        cvec_t * sp       = new_cvec (win_s, channels); /* input buffer */
    9         del_fvec(in);
    108        del_cvec(sp);
    119
Note: See TracChangeset for help on using the changeset viewer.