26 using LERR_(ASSERTION);
54 verifyConfiguration<Digxel<int> > (123);
55 verifyConfiguration<Digxel<double>> (123.4567);
56 verifyConfiguration<SexaDigit > (42);
57 verifyConfiguration<SexaDigit > (-5);
58 verifyConfiguration<HexaDigit > (0xc);
59 verifyConfiguration<HexaDigit > (0x6f);
60 verifyConfiguration<CountVal > (-1234567890);
78 CHECK (sig.show() == string(
" "));
80 CHECK (sig.show() == string(
"-"));
84 template<
class DIX,
typename VAL>
86 verifyConfiguration (VAL testval)
90 cout << typeStr(digxel) <<
"--empty--"<<digxel;
93 cout <<
"--(val="<<testval<<
")--"<<digxel;
96 digxel = 123456789.12345;
99 VERIFY_ERROR (ASSERTION, formatted = digxel.show() ); // should trigger assertion 100 formatted = digxel.show();
101 CHECK (formatted.length() == digxel.maxlen());
102 cout <<
"--(clipped)--"<< digxel;
A self-contained numeric element for building structured numeric displays.
Implementation namespace for support and library code.
Simplistic test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A collection of frequently used helper functions to support unit testing.
Lumiera error handling (C++ interface).
special Digxel to show a sign.