- Test:
- verify correct behaviour of an display "Digxel": A self-contained numeric element to support building displays.
- build a Digxel
- set a value
- retrieve formatted display
- verify comparisons and increments
- performing side-effects from the setter-functor
- formatted value caching
Definition at line 148 of file digxel-test.cpp.
◆ verifyAssignMutatingOperators()
void verifyAssignMutatingOperators |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify the self-assigning increment/decrement operators.
- Note
- especially these need to invoke the mutator function, much like a direct assignment. We use a special mutator to protocol the previous / new value.
Definition at line 241 of file digxel-test.cpp.
◆ checkDisplayOverrun()
void checkDisplayOverrun |
( |
| ) |
|
|
inlineprivate |
◆ timingMeasurements()
void timingMeasurements |
( |
| ) |
|
|
inlineprivate |
- Test:
- perform several timing measurements and especially verify the effect of caching formatted values.
Digxel avoids reformatting unchanged values; besides that it is possible to install a "mutator" functor for invoking all kinds of special behaviour on value changes. Of course doing so comes with a (considerable) price tag....
- Note
- the measurement especially show the effects of locality, which can vary largely over several runs.
Definition at line 345 of file digxel-test.cpp.
The documentation for this class was generated from the following file: