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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,16 +19,22 @@ TEST(Emojis, ShortcodeParsing)
std::vector<TestCase> tests{
{
.input = "foo :penguin: bar",
.expectedOutput = "foo 🐧 bar",
// input
"foo :penguin: bar",
// expected output
"foo 🐧 bar",
},
{
.input = "foo :nonexistantcode: bar",
.expectedOutput = "foo :nonexistantcode: bar",
// input
"foo :nonexistantcode: bar",
// expected output
"foo :nonexistantcode: bar",
},
{
.input = ":male-doctor:",
.expectedOutput = "👨‍⚕️",
// input
":male-doctor:",
// expected output
"👨‍⚕️",
},
};