
27 Aug
2009
27 Aug
'09
12:37 a.m.
Jared McIntyre <jmcintyre <at> dfsoftware.com> writes:
Whoops. In the rush to simplify the example, I hadn't noticed that the error messages had changed. Here is the error when a wstring is properly constructed:
<snip>
Sorry about that. The following code will work as a workaround, but I was wondering what others are doing when they have a wstring.
std::wstring testString; BOOST_CHECK_EQUAL(testString.c_str(), L"");
Another option is BOOST_CHECK_MESSAGE((testString == L""), "testString doesn't match an empty wcstring!");. Or just define operator<<(std::ostream&, std::wstring const&) in your test module. -Ryan