mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Don't use designated initializers (#2457)
they are a C++20 feature, we aim to support C++17.
This commit is contained in:
parent
6b0ce396d6
commit
46f1347e4b
|
@ -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
|
||||
"👨⚕️",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue