Functions | Variables
interval_calc_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <settlerlib/interval_calc.h>
#include <settlerlib/sorted_deque.h>
Include dependency graph for interval_calc_unittest.cpp:

Go to the source code of this file.

Functions

SortedDeque< DeflatedConstPtrgenerateSignal1 ()
 
SortedDeque< DeflatedConstPtrgenerateSignal2 ()
 
int main (int argc, char **argv)
 
 TEST (IntervalCalc, easy1)
 
 TEST (IntervalCalc, easy2)
 
 TEST (IntervalCalc, maxStep1)
 
 TEST (IntervalCalc, maxStep2)
 

Variables

static const double dataA [NA][2]
 
const unsigned int NA = 9
 

Function Documentation

SortedDeque<DeflatedConstPtr> generateSignal1 ( )

Generate data for 2 channels

Definition at line 57 of file interval_calc_unittest.cpp.

SortedDeque<DeflatedConstPtr> generateSignal2 ( )

Generate data for 2 channels. Same at generateSignal1, except there's a time discontinuity between samples 4 & 5.

Definition at line 79 of file interval_calc_unittest.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 164 of file interval_calc_unittest.cpp.

TEST ( IntervalCalc  ,
easy1   
)

Definition at line 104 of file interval_calc_unittest.cpp.

TEST ( IntervalCalc  ,
easy2   
)

Definition at line 119 of file interval_calc_unittest.cpp.

TEST ( IntervalCalc  ,
maxStep1   
)

Definition at line 134 of file interval_calc_unittest.cpp.

TEST ( IntervalCalc  ,
maxStep2   
)

Definition at line 150 of file interval_calc_unittest.cpp.

Variable Documentation

const double dataA[NA][2]
static
Initial value:
= { { 0, 0},
{ 1, 1},
{ 2, 2},
{ 3, 3},
{ 4, 4},
{ 3, 5},
{ 2, 6},
{ 1, 7},
{ 0, 8} }

Definition at line 44 of file interval_calc_unittest.cpp.

const unsigned int NA = 9

Definition at line 43 of file interval_calc_unittest.cpp.



settlerlib
Author(s): Vijay Pradeep
autogenerated on Thu Jun 6 2019 19:17:23