11 Feb
2009
11 Feb
'09
7:09 a.m.
Alexander
The following code:
BOOST_CHECK_EQUAL("boo", "boo"); BOOST_CHECK_EQUAL("boo", "bar"); BOOST_CHECK_EQUAL(L"boo", L"boo"); BOOST_CHECK_EQUAL(L"boo", L"bar");
Gives the following results
test.cpp(368): error in "Strings": check "boo" == "bar" failed [boo != bar] test.cpp(370): error in "Strings": check L"boo" == L"bar" failed [00B6FAA4 != 00B6FA90]
Can this be fixed ?
Depends. This particular problem is a result of incorrect printing operation of wchar_t strings into ostream. You can probably implement one yourself, which does the better job. In general there are some issues with wide char support in Boost.Test, but they are not so trivial to address. Especially in backward compatible manner. Gennadiy