| 224 | } |
| 225 | |
| 226 | std::string CommonSyntaxTest::errorMessage(util::Exception const& _e) |
| 227 | { |
| 228 | if (_e.comment() && !_e.comment()->empty()) |
| 229 | return boost::replace_all_copy(*_e.comment(), "\n", "\\n"); |
| 230 | else |
| 231 | return "NONE"; |
| 232 | } |
| 233 | |
| 234 | std::vector<SyntaxTestError> CommonSyntaxTest::parseExpectations(std::istream& _stream) |
| 235 | { |