- 3.0.2 core module.
DiscreteArrayTest.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <ct/core/core.h>
#include <gtest/gtest.h>

Functions

 TEST (DiscreteArrayTest, UnaryPlusMinusTest)
 
 TEST (DiscreteArrayTest, AddAssignTest)
 
 TEST (DiscreteArrayTest, SubstractAssignTest)
 
 TEST (DiscreteArrayTest, MultiplicationTest)
 
 TEST (DiscreteArrayTest, DivisionTest)
 
int main (int argc, char **argv)
 

Function Documentation

◆ TEST() [1/5]

TEST ( DiscreteArrayTest  ,
UnaryPlusMinusTest   
)

create two state vector array and fill them with random elements

create backups for for later comparison

test the overloaded operators

check that the summation is correct

check that the difference is correct

check that original elements were not altered

References i, and state_dim.

◆ TEST() [2/5]

TEST ( DiscreteArrayTest  ,
AddAssignTest   
)

create two state vector array and fill them with random elements

create backups for for later comparison

test the overloaded operator

check that the summation is correct

check that original rhs elements were not altered

References i, and state_dim.

◆ TEST() [3/5]

TEST ( DiscreteArrayTest  ,
SubstractAssignTest   
)

create two state vector array and fill them with random elements

create backups for for later comparison

test the overloaded operator

check that the summation is correct

check that original rhs elements were not altered

References i, and state_dim.

◆ TEST() [4/5]

TEST ( DiscreteArrayTest  ,
MultiplicationTest   
)

create backups for for later comparison

test the overloaded operator

check that the summation is correct

check that original rhs elements were not altered

References i, and state_dim.

◆ TEST() [5/5]

TEST ( DiscreteArrayTest  ,
DivisionTest   
)

create backups for for later comparison

test the overloaded operator

check that the summation is correct

check that original rhs elements were not altered

References i, and state_dim.

◆ main()

int main ( int  argc,
char **  argv 
)