Don't use designated initializers (#2457)

they are a C++20 feature, we aim to support C++17.
This commit is contained in:
pajlada
2021-02-14 12:59:29 +01:00
committed by GitHub
parent 6b0ce396d6
commit 46f1347e4b
+12 -6
View File
@@ -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
"👨‍⚕️",
}, },
}; };