Changeset 92c85b12


Ignore:
Timestamp:
Nov 29, 2018, 4:58:12 PM (11 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
953cde5
Parents:
c631cc0
Message:

[tests] fail dct tests if reconstruction failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/spectral/test-dct.c

    rc631cc0 r92c85b12  
    3333    aubio_dct_rdo (dct, dctout, out);
    3434    for (j = 0; j < in->length; j++) {
    35       if (fabsf(in->data[j] - out->data[j]) > 10.e-4) {
    36         fprintf(stderr, "dct reconstruction failed\n");
    37       }
     35      return_code += (fabsf(in->data[j] - out->data[j]) > 10.e-4);
    3836    }
    3937  }
Note: See TracChangeset for help on using the changeset viewer.