Lumiera  0.pre.03
»edit your freedom«
digxel-test.cpp File Reference

Go to the source code of this file.

Description

unit test Digxel_test

Definition in file digxel-test.cpp.

#include "lib/test/run.hpp"
#include "lib/format-cout.hpp"
#include "lib/format-string.hpp"
#include "lib/test/test-helper.hpp"
#include "lib/time/digxel.hpp"
#include "lib/random.hpp"
#include "lib/util.hpp"

Classes

class  Digxel_test
 
struct  VerySpecialFormat
 

Typedefs

typedef Digxel< double, VerySpecialFormat > TestDigxel
 

Macros

#define DISPLAY_TIMINGS(ID)
 
#define START_TIMINGS   start=clock();
 

Functions

double checksum (0)
 
void emptyMutator (TestDigxel *, double)
 
uint isOdd (uint i)
 
 LAUNCHER (Digxel_test, "unit common")
 Register this test class... More...
 
void limitingMutator (TestDigxel *digxel, double value2set)
 
double newval (0)
 
double preval (0)
 
void protocollingMutator (TestDigxel *digxel, double val)
 
double randomFrac ()
 
void sideeffectSum (TestDigxel *digxel, double val)
 
double sum (0)
 
void trivialMutator (TestDigxel *digxel, double value2set)
 

Variables

const uint RAND_DENOM = 3
 
const uint RAND_RANGE = 100
 
const uint REPEAT = 40
 
const uint TIMING_CNT = 10000000
 

Namespaces

 lib
 Implementation namespace for support and library code.
 

Macro Definition Documentation

◆ DISPLAY_TIMINGS

#define DISPLAY_TIMINGS (   ID)
Value:
stop = clock(); \
uint ID = stop-start;\
cout << resultDisplay % STRINGIFY (ID) % (double(ID)/CLOCKS_PER_SEC/TIMING_CNT*1e9) ;
#define STRINGIFY(TOKEN)
this macro wraps its parameter into a cstring literal
Definition: util.hpp:508

Function Documentation

◆ LAUNCHER()

lib::time::test::LAUNCHER ( Digxel_test  ,
"unit common"   
)

Register this test class...