Commit 28644bad authored by Niels's avatar Niels

removed std::out output from test cases

parent 6e1347e6
...@@ -10308,6 +10308,11 @@ TEST_CASE("parser class") ...@@ -10308,6 +10308,11 @@ TEST_CASE("parser class")
TEST_CASE("README", "[hide]") TEST_CASE("README", "[hide]")
{ {
{
// redirect std::cout for the README file
auto old_cout_buffer = std::cout.rdbuf();
std::ostringstream new_stream;
std::cout.rdbuf(new_stream.rdbuf());
{ {
// create an empty structure (null) // create an empty structure (null)
json j; json j;
...@@ -10556,6 +10561,10 @@ TEST_CASE("README", "[hide]") ...@@ -10556,6 +10561,10 @@ TEST_CASE("README", "[hide]")
// { "op":"add","path":"/foo","value":"bar" } // { "op":"add","path":"/foo","value":"bar" }
// ] // ]
} }
// restore old std::cout
std::cout.rdbuf(old_cout_buffer);
}
} }
TEST_CASE("algorithms") TEST_CASE("algorithms")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment