37 using LERR_(ASSERTION);
67 verifyConfiguration<Digxel<int> > (123);
68 verifyConfiguration<Digxel<double>> (123.4567);
69 verifyConfiguration<SexaDigit > (42);
70 verifyConfiguration<SexaDigit > (-5);
71 verifyConfiguration<HexaDigit > (0xc);
72 verifyConfiguration<HexaDigit > (0x6f);
73 verifyConfiguration<CountVal > (-1234567890);
91 CHECK (sig.show() == string(
" "));
93 CHECK (sig.show() == string(
"-"));
97 template<
class DIX,
typename VAL>
99 verifyConfiguration (VAL testval)
103 cout << typeStr(digxel) <<
"--empty--"<<digxel;
106 cout <<
"--(val="<<testval<<
")--"<<digxel;
109 digxel = 123456789.12345;
112 VERIFY_ERROR (ASSERTION, formatted = digxel.show() ); // should trigger assertion 113 formatted = digxel.show();
114 CHECK (formatted.length() == digxel.maxlen());
115 cout <<
"--(clipped)--"<< digxel;
A self-contained numeric element for building structured numeric displays.
Implementation namespace for support and library code.
Simple 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.
bool isSameObject(A const &a, B const &b)
compare plain object identity, bypassing any custom comparison operators.