EXPECT_EQ (0, strcmp(s.c_string(), kHelloString2)) << "s.c_string:" << s.c_string() ... 如果要比較兩個字元串對象,請改用EXPECT_EQ,EXPECT_NE和etc。
確定! 回上一頁