mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-14 15:18:00 -04:00
Fix util-test
This commit is contained in:
parent
5a5870d3ca
commit
cabe5bddb4
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user