6 #include "../../etvo/common/etvoException.h" 16 static bool TestAll(
const T & a)
25 std::cout <<
"Exception #" << e.Num();
26 std::cout <<
" Msg :" << e.Message() << std::endl;
32 static void print(
const T & a)
34 std::cout <<
"a=" << a << std::endl;
43 if (!(eps + eps == eps))
48 if (!(eps * eps == eps))
53 if (!(eps * top == eps))
58 if (!(top*eps == eps))
63 if (!(top*top == top))
68 if (!(top + top == top))
72 if (!(eps + top == top))
77 if (!(top + eps == top))
83 static void Test1(
const T & a)
101 if (!(a * eps == eps))
108 if (!(eps * a == eps))
115 if (!((a + top) == top))
122 if (!((top + a) == top))
129 if (!(a==eps) && !(a * top == top))
135 if (!(a == eps) && !(top*a == top))
Definition: testException.h:9