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