
30 Jul
2006
30 Jul
'06
3:05 a.m.
According to the document, BOOST_CHECK is the same as BOST_CHECK_EQUAL. However,I found an exception. Which is listed below, where m_mmf.SetLngGetString(1033, 1) returns a const wchar_t* type. Interestingly, the first two tests fail, while the last two pass. BOOST_CHECK(L"A" == m_mmf.SetLngGetString(1033, 1)); BOOST_CHECK(m_mmf.SetLngGetString(1033, 1) == L"A" ); BOOST_CHECK_EQUAL(L"A", m_mmf.SetLngGetString(1033, 1)); BOOST_CHECK_EQUAL(m_mmf.SetLngGetString(1033, 1), L"A"); Can any one please help to explain it? Thanks