mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Remove WriteArrayOfUnknownSize because it shouldn't compile according to standard.
This commit is contained in:
parent
47f2e7aa02
commit
c0d55e6308
@ -129,8 +129,6 @@ class TestString {
|
||||
}
|
||||
};
|
||||
|
||||
extern char array_of_unknown_size[];
|
||||
|
||||
TEST(ArrayTest, Ctor) {
|
||||
Array<char, 123> array;
|
||||
EXPECT_EQ(0u, array.size());
|
||||
@ -421,12 +419,6 @@ TEST(WriterTest, WriteWideString) {
|
||||
//fmt::WWriter() << "abc";
|
||||
}
|
||||
|
||||
TEST(WriterTest, WriteArrayOfUnknownSize) {
|
||||
fmt::Writer w;
|
||||
w.write("{}", array_of_unknown_size);
|
||||
EXPECT_EQ(array_of_unknown_size, w.str());
|
||||
}
|
||||
|
||||
TEST(WriterTest, bin) {
|
||||
using fmt::bin;
|
||||
EXPECT_EQ("1100101011111110", (Writer() << bin(0xcafe)).str());
|
||||
@ -1534,6 +1526,3 @@ TEST(FormatTest, FormatMessageExample) {
|
||||
EXPECT_EQ("[42] something happened",
|
||||
FormatMessage(42, "{} happened", "something"));
|
||||
}
|
||||
|
||||
// This should be at the end of the file to make the array size unknown above.
|
||||
char array_of_unknown_size[] = "abc";
|
||||
|
Loading…
Reference in New Issue
Block a user