source: tests/src/utils/test-hist.c @ 217ca89

feature/crepe_org
Last change on this file since 217ca89 was c0429d4, checked in by Paul Brossier <piem@piem.org>, 6 years ago

[tests] check hist with size null fails

  • Property mode set to 100644
File size: 687 bytes
Line 
1#define AUBIO_UNSTABLE 1
2
3#include <aubio.h>
4
5int main (void)
6{
7  uint_t length;
8  for (length = 1; length < 10; length ++ ) {
9    aubio_hist_t *o = new_aubio_hist(0, 1, length);
10    fvec_t *t = new_aubio_window("hanning", length);
11    aubio_hist_do(o,t);
12    fvec_print(t);
13    aubio_hist_do_notnull(o,t);
14    fvec_print(t);
15    aubio_hist_dyn_notnull(o,t);
16    fvec_print(t);
17    del_fvec(t);
18    t = new_aubio_window("hanningz", length);
19    aubio_hist_do(o,t);
20    fvec_print(t);
21    aubio_hist_do_notnull(o,t);
22    fvec_print(t);
23    aubio_hist_dyn_notnull(o,t);
24    fvec_print(t);
25    del_aubio_hist(o);
26    del_fvec(t);
27  }
28  if (new_aubio_hist(0, 1, 0)) return 1;
29  return 0;
30}
31
Note: See TracBrowser for help on using the repository browser.