Permit output of indeterminate value that isn't converted to a tribool

[SVN r27739]
This commit is contained in:
Douglas Gregor committed 2005-03-18 20:40:06 +00:00
1 parent 796f4a5fa8
commit 192433a5e1
2 files changed
+34

No files matched your search

+14
View File
@@ -44,6 +44,13 @@ int test_main(int, char*[])
<< std::endl;
BOOST_CHECK(out.str() == "2");
// Output indeterminate (noboolalpha)
out.str(std::string());
out << indeterminate;
std::cout << "Output indeterminate (noboolalpha): " << out.str()
<< std::endl;
BOOST_CHECK(out.str() == "2");
#ifndef BOOST_NO_STD_LOCALE
const std::numpunct<char>& punct =
BOOST_USE_FACET(std::numpunct<char>, out.getloc());
@@ -71,6 +78,13 @@ int test_main(int, char*[])
<< std::endl;
BOOST_CHECK(out.str() == "indeterminate");
// Output indeterminate (boolalpha - default name)
out.str(std::string());
out << std::boolalpha << indeterminate;
std::cout << "Output indeterminate (boolalpha - default name): " << out.str()
<< std::endl;
BOOST_CHECK(out.str() == "indeterminate");
# if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1)
// No template constructors, so we can't build the test locale
# else