26using 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>
90 cout << typeStr(digxel) <<
"--empty--"<<digxel;
93 cout <<
"--(val="<<testval<<
")--"<<digxel;
96 digxel = 123456789.12345;
100 formatted = digxel.show();
101 CHECK (formatted.length() == digxel.maxlen());
102 cout <<
"--(clipped)--"<< digxel;
digxel::CBuf show() const
special Digxel to show a sign.
void verifyConfiguration(VAL testval)
A self-contained numeric element for building structured numeric displays.
Lumiera error handling (C++ interface).
Implementation namespace for support and library code.
Test runner and basic definitions for tests.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
A collection of frequently used helper functions to support unit testing.
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...