Make the failed message single line to fix result parsing

This commit is contained in:
János Benjamin Antal 2023-09-15 12:04:22 +00:00
parent 8d01137d73
commit 68c6bd8826

View File

@ -39,7 +39,9 @@ std::ostream & operator<<(std::ostream & ostr, const std::shared_ptr<IParser> pa
std::ostream & operator<<(std::ostream & ostr, const ParserTestCase & test_case) std::ostream & operator<<(std::ostream & ostr, const ParserTestCase & test_case)
{ {
return ostr << "ParserTestCase input: " << test_case.input_text; std::string input_text{test_case.input_text};
std::replace(input_text.begin(), input_text.end(),'\n', ' ');
return ostr << "ParserTestCase input: " << input_text;
} }
class ParserTest : public ::testing::TestWithParam<std::tuple<std::shared_ptr<IParser>, ParserTestCase>> class ParserTest : public ::testing::TestWithParam<std::tuple<std::shared_ptr<IParser>, ParserTestCase>>