|
Boost Users : |
From: Tan Zhi (rockonedge_at_[hidden])
Date: 2006-07-29 23:05:48
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net