Don't use designated initializers (#2457)
they are a C++20 feature, we aim to support C++17.
This commit is contained in:
+12
-6
@@ -19,16 +19,22 @@ TEST(Emojis, ShortcodeParsing)
|
|||||||
|
|
||||||
std::vector<TestCase> tests{
|
std::vector<TestCase> tests{
|
||||||
{
|
{
|
||||||
.input = "foo :penguin: bar",
|
// input
|
||||||
.expectedOutput = "foo 🐧 bar",
|
"foo :penguin: bar",
|
||||||
|
// expected output
|
||||||
|
"foo 🐧 bar",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.input = "foo :nonexistantcode: bar",
|
// input
|
||||||
.expectedOutput = "foo :nonexistantcode: bar",
|
"foo :nonexistantcode: bar",
|
||||||
|
// expected output
|
||||||
|
"foo :nonexistantcode: bar",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.input = ":male-doctor:",
|
// input
|
||||||
.expectedOutput = "👨⚕️",
|
":male-doctor:",
|
||||||
|
// expected output
|
||||||
|
"👨⚕️",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user