Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
digxel-test.cpp File Reference

unit test Digxel_test More...

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"

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::time
 
namespace  lib::time::test
 
namespace  lib::time::test::anonymous_namespace{digxel-test.cpp}
 

Macros

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

Typedefs

typedef Digxel< double, VerySpecialFormatTestDigxel
 

Classes

struct  VerySpecialFormat
 
class  Digxel_test
 

Functions

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

Variables

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

Macro Definition Documentation

◆ START_TIMINGS

#define START_TIMINGS   start=clock();

◆ 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) ;
unsigned int uint
Definition integral.hpp:29
#define STRINGIFY(TOKEN)
this macro wraps its parameter into a cstring literal
Definition util.hpp:508