|
41 | 41 | if (!UnitTest::Check(value)) \ |
42 | 42 | UnitTest::CurrentTest::Results()->OnTestFailure(UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__), #value); \ |
43 | 43 | }) \ |
| 44 | + UT_CATCH (UnitTest::AssertException, e, \ |
| 45 | + { \ |
| 46 | + UT_THROW(); \ |
| 47 | + }) \ |
44 | 48 | UT_CATCH (std::exception, e, \ |
45 | 49 | { \ |
46 | 50 | UnitTest::MemoryOutStream message; \ |
|
60 | 64 | UT_TRY \ |
61 | 65 | ({ \ |
62 | 66 | UnitTest::CheckEqual(*UnitTest::CurrentTest::Results(), expected, actual, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \ |
63 | | - }) \ |
| 67 | + }) \ |
| 68 | + UT_CATCH (UnitTest::AssertException, e, \ |
| 69 | + { \ |
| 70 | + UT_THROW(); \ |
| 71 | + }) \ |
64 | 72 | UT_CATCH (std::exception, e, \ |
65 | 73 | { \ |
66 | 74 | UnitTest::MemoryOutStream message; \ |
|
81 | 89 | ({ \ |
82 | 90 | UnitTest::CheckClose(*UnitTest::CurrentTest::Results(), expected, actual, tolerance, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \ |
83 | 91 | }) \ |
| 92 | + UT_CATCH (UnitTest::AssertException, e, \ |
| 93 | + { \ |
| 94 | + UT_THROW(); \ |
| 95 | + }) \ |
84 | 96 | UT_CATCH (std::exception, e, \ |
85 | 97 | { \ |
86 | 98 | UnitTest::MemoryOutStream message; \ |
|
100 | 112 | UT_TRY \ |
101 | 113 | ({ \ |
102 | 114 | UnitTest::CheckArrayEqual(*UnitTest::CurrentTest::Results(), expected, actual, count, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \ |
103 | | - }) \ |
| 115 | + }) \ |
| 116 | + UT_CATCH (UnitTest::AssertException, e, \ |
| 117 | + { \ |
| 118 | + UT_THROW(); \ |
| 119 | + }) \ |
104 | 120 | UT_CATCH (std::exception, e, \ |
105 | 121 | { \ |
106 | 122 | UnitTest::MemoryOutStream message; \ |
|
121 | 137 | ({ \ |
122 | 138 | UnitTest::CheckArrayClose(*UnitTest::CurrentTest::Results(), expected, actual, count, tolerance, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \ |
123 | 139 | }) \ |
| 140 | + UT_CATCH (UnitTest::AssertException, e, \ |
| 141 | + { \ |
| 142 | + UT_THROW(); \ |
| 143 | + }) \ |
124 | 144 | UT_CATCH (std::exception, e, \ |
125 | 145 | { \ |
126 | 146 | UnitTest::MemoryOutStream message; \ |
|
140 | 160 | UT_TRY \ |
141 | 161 | ({ \ |
142 | 162 | UnitTest::CheckArray2DClose(*UnitTest::CurrentTest::Results(), expected, actual, rows, columns, tolerance, UnitTest::TestDetails(*UnitTest::CurrentTest::Details(), __LINE__)); \ |
143 | | - }) \ |
| 163 | + }) \ |
| 164 | + UT_CATCH (UnitTest::AssertException, e, \ |
| 165 | + { \ |
| 166 | + UT_THROW(); \ |
| 167 | + }) \ |
144 | 168 | UT_CATCH (std::exception, e, \ |
145 | 169 | { \ |
146 | 170 | UnitTest::MemoryOutStream message; \ |
|
0 commit comments