summaryrefslogtreecommitdiffstats
path: root/test/open_interest.c
blob: 165c3c59019cb59810697353e1b0402155cfcd09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <math.h>
#include <stddef.h>
#include "ts.h"

bool ts_test_open_interest( void )
{
    fp_t const x[] = { 100, 200, 300, 400, 500 };
    fp_t const e[] = { 100, 200, 300, 400, 500 };

    fp_t const * const inp[1] = { x };
    fp_t const * const exp[1] = { e };

    return ts_test(ts_open_interest, ts_open_interest_offset, inp, exp, sizeof( x ) / sizeof( *x ), (ts_constant_t *)NULL, &ts_open_interest_p);
}