mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix util-test
This commit is contained in:
@ -699,7 +699,7 @@ void test_count_digits() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(UtilTest, StringRef) {
|
TEST(UtilTest, StringRef) {
|
||||||
char space[PATH_MAX];
|
char space[100];
|
||||||
snprintf(space, sizeof(space), "some string");
|
snprintf(space, sizeof(space), "some string");
|
||||||
EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size());
|
EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user