//[ testing_with_exceptions_sut_cpp #include "hello.hpp" void hello_world(std::ostream& stream) { if (stream.bad()) { throw std::runtime_error("bad stream"); } stream << "Hello, world!\n"; } //]