Update fix_formatted_text test.
GitOrigin-RevId: ab55a080724eaff5f2074cc7273aafc7285d6fa8
This commit is contained in:
parent
9c67f42682
commit
dca3862088
@ -819,7 +819,9 @@ TEST(MessageEntities, fix_formatted_text) {
|
|||||||
// _a*b*_
|
// _a*b*_
|
||||||
check_fix_formatted_text(
|
check_fix_formatted_text(
|
||||||
"ab", {{td::MessageEntity::Type::Underline, 0, 2}, {td::MessageEntity::Type::Strikethrough, 1, 1}}, "ab",
|
"ab", {{td::MessageEntity::Type::Underline, 0, 2}, {td::MessageEntity::Type::Strikethrough, 1, 1}}, "ab",
|
||||||
{{td::MessageEntity::Type::Underline, 0, 2}, {td::MessageEntity::Type::Strikethrough, 1, 1}});
|
{{td::MessageEntity::Type::Underline, 0, 1},
|
||||||
|
{td::MessageEntity::Type::Underline, 1, 1},
|
||||||
|
{td::MessageEntity::Type::Strikethrough, 1, 1}});
|
||||||
check_fix_formatted_text("ab",
|
check_fix_formatted_text("ab",
|
||||||
{{td::MessageEntity::Type::Underline, 0, 1},
|
{{td::MessageEntity::Type::Underline, 0, 1},
|
||||||
{td::MessageEntity::Type::Underline, 1, 1},
|
{td::MessageEntity::Type::Underline, 1, 1},
|
||||||
@ -830,7 +832,9 @@ TEST(MessageEntities, fix_formatted_text) {
|
|||||||
{td::MessageEntity::Type::Strikethrough, 1, 1}});
|
{td::MessageEntity::Type::Strikethrough, 1, 1}});
|
||||||
check_fix_formatted_text(
|
check_fix_formatted_text(
|
||||||
"ab", {{td::MessageEntity::Type::Strikethrough, 0, 2}, {td::MessageEntity::Type::Underline, 1, 1}}, "ab",
|
"ab", {{td::MessageEntity::Type::Strikethrough, 0, 2}, {td::MessageEntity::Type::Underline, 1, 1}}, "ab",
|
||||||
{{td::MessageEntity::Type::Strikethrough, 0, 2}, {td::MessageEntity::Type::Underline, 1, 1}});
|
{{td::MessageEntity::Type::Strikethrough, 0, 1},
|
||||||
|
{td::MessageEntity::Type::Underline, 1, 1},
|
||||||
|
{td::MessageEntity::Type::Strikethrough, 1, 1}});
|
||||||
check_fix_formatted_text("ab",
|
check_fix_formatted_text("ab",
|
||||||
{{td::MessageEntity::Type::Strikethrough, 0, 1},
|
{{td::MessageEntity::Type::Strikethrough, 0, 1},
|
||||||
{td::MessageEntity::Type::Strikethrough, 1, 1},
|
{td::MessageEntity::Type::Strikethrough, 1, 1},
|
||||||
|
Reference in New Issue
Block a user