Changeset 7df72ac


Ignore:
Timestamp:
Dec 28, 2023, 1:35:18 PM (5 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
master
Children:
77fb5bf
Parents:
6fa0bc3
Message:

[tests] use ABS in test-dct

File:
1 edited

Legend:

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

    r6fa0bc3 r7df72ac  
    11#include <math.h>
    22#include "aubio.h"
     3#include "aubio_priv.h"
    34#include "utils_tests.h"
    45
     
    3334    aubio_dct_rdo (dct, dctout, out);
    3435    for (j = 0; j < in->length; j++) {
    35       return_code += (fabsf(in->data[j] - out->data[j]) > 10.e-4);
     36      return_code += (ABS(in->data[j] - out->data[j]) > 10.e-4);
    3637    }
    3738  }
Note: See TracChangeset for help on using the changeset viewer.