#include "../tap.hpp" #include "../stream.hpp" #include /////////////////////////////////////////////////////////////////////////////// template void test_scoped (cruft::TAP::logger&); //----------------------------------------------------------------------------- template <> void test_scoped (cruft::TAP::logger &tap) { std::ostringstream os; { cruft::stream::scoped::flags f (os); os << std::hex; } os << 15; tap.expect_eq (os.str (), "15", "stream::scoped::flag reverts std::hex"); } /////////////////////////////////////////////////////////////////////////////// int main (int, char **) { cruft::TAP::logger tap; test_scoped (tap); return tap.status (); }