ASSERT_TRUE(1==1);
ASSERT_EQ(1,1);
会给出以下错误:
"cfunctest_normal.cpp", line 121.9: 1540-0258 (S) A return value of type "int" cannot be initialized with an expression of type "void".
EXPECT_EQ();
不会出现这样的问题
不知道为什么?
ASSERT_TRUE(1==1);
ASSERT_EQ(1,1);
会给出以下错误:
"cfunctest_normal.cpp", line 121.9: 1540-0258 (S) A return value of type "int" cannot be initialized with an expression of type "void".
EXPECT_EQ();
不会出现这样的问题
不知道为什么?