Hello,
What's the rational behind having ASSERT_EQ allowing tests like
ASSERT_EQ(NULL, somePointer); though disallowing ASSERT_NE(NULL,
somePointer); ?
From what I see, the implementation of ASSERT_EQ relies
on ::testing::internal::EqHelper<GTEST_IS_NULL_LITERAL_(expected)
>::Compare but ASSERT_NE uses ::testing::internal::CmpHelperNE.
With MSVC2005, ASSERT_NE(NULL, somePointer); fails to compile when
trying to instantiate CmpHelperNE<int, void*> with a C2040 error:
http://msdn.microsoft.com/en-us/library/kb3dky0e.aspx
Thank you,
Gregory