Silence "warning C4996: 'strcpy': This function or variable may be unsafe." on MSVC
This commit is contained in:
parent
9b80e75b05
commit
a243548cec
@ -699,9 +699,8 @@ void test_count_digits() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(UtilTest, StringRef) {
|
TEST(UtilTest, StringRef) {
|
||||||
char space[100];
|
char space[100] = "some string";
|
||||||
std::strcpy(space, "some string");
|
EXPECT_EQ(std::strlen(space), StringRef(space).size());
|
||||||
EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(UtilTest, CountDigits) {
|
TEST(UtilTest, CountDigits) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user