| 33 | } |
| 34 | |
| 35 | void classInfoFormat() const { |
| 36 | for (const Check * const c : CheckInstances::get()) { |
| 37 | const std::string info = c->classInfo(); |
| 38 | if (!info.empty()) { |
| 39 | ASSERT('\n' != info[0]); // No \n in the beginning |
| 40 | ASSERT('\n' == info.back()); // \n at end |
| 41 | if (info.size() > 1) |
| 42 | ASSERT('\n' != info[info.length()-2]); // Only one \n at end |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | }; |
| 47 | |
| 48 | REGISTER_TEST(TestCheck) |