]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/logic/test/tribool_io_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / logic / test / tribool_io_test.cpp
index 84bce90d9eea63e3e5c3327052341b48ec0845f3..c2d502129ab024663462ccc4039ffa4cac36784b 100644 (file)
@@ -20,6 +20,18 @@ int test_main(int, char*[])
 
   tribool x;
 
+  #if !defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_STD_WSTRING)
+  std::wostringstream wout;
+  wout << std::boolalpha << tribool(false);
+  BOOST_CHECK(wout.str() == L"false");
+  wout.str(std::wstring());
+  wout << std::boolalpha << tribool(true);
+  BOOST_CHECK(wout.str() == L"true");
+  wout.str(std::wstring());
+  wout << std::boolalpha << tribool(indeterminate);
+  BOOST_CHECK(wout.str() == L"indeterminate");
+  #endif
+
   // Check tribool output
   std::ostringstream out;