dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unittest.cpp File Reference
#include "gtest/gtest.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "misc_math.h"
#include <math.h>

Go to the source code of this file.

Data Structures

class  MiscMath
 
class  BoundMinMax
 
class  BoundSym
 
class  CircularModulusDeg
 
class  Vector2Clip
 
class  LinearInterpolate
 
class  MatrixMath
 

Macros

#define restrict   /* neuter restrict keyword since it's not in C++ */
 
#define PSEUDOINV_CONVERGE_LIMIT   19
 

Functions

 TEST_F (BoundMinMax, ValBelowZeroRange)
 
 TEST_F (BoundMinMax, ValWithinZeroRange)
 
 TEST_F (BoundMinMax, ValAboveZeroRange)
 
 TEST_F (BoundMinMax, PositiveMinMax)
 
 TEST_F (BoundMinMax, NegativeMinMax)
 
 TEST_F (BoundMinMax, StraddleZeroMinMax)
 
 TEST_F (BoundSym, ZeroRange)
 
 TEST_F (BoundSym, NonZeroRange)
 
 TEST_F (CircularModulusDeg, NullError)
 
 TEST_F (CircularModulusDeg, MaxPosError)
 
 TEST_F (CircularModulusDeg, MaxNegError)
 
 TEST_F (CircularModulusDeg, SweepError)
 
 TEST_F (Vector2Clip, TestScale)
 
 TEST_F (LinearInterpolate, ThrottleCurve1to1)
 
 TEST_F (LinearInterpolate, CollectiveCurve1to1)
 
 TEST_F (MatrixMath, MultipliesAndInverses)
 
 TEST_F (MatrixMath, MixerMatrixInverses)