Silence warnings on Windows

This commit is contained in:
Carter Li
2015-02-17 10:11:42 +08:00
parent 8d07db0e0e
commit 3f574c1611
3 changed files with 10 additions and 11 deletions

View File

@@ -699,9 +699,8 @@ void test_count_digits() {
}
TEST(UtilTest, StringRef) {
char space[100];
std::strcpy(space, "some string");
EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size());
char space[100] = "some string";
EXPECT_EQ(std::strlen(space), StringRef(space).size());
}
TEST(UtilTest, CountDigits) {