1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <sstream> #include <libprint/version.hxx> #include <libprint/print.hxx> #undef NDEBUG #include <cassert> int main () { using namespace std; using namespace print; ostringstream o; print_hello (o, "Hello, World!"); assert (o.str () == "Hello, World!\n"); }