Improve t.me links test.

This commit is contained in:
levlam 2021-05-29 00:51:51 +03:00
parent bfb2be1018
commit d17d40203c

View File

@ -107,6 +107,7 @@ TEST(Link, parse_internal_link) {
parse_internal_link("www%2Etelegram.dog/levlam/1", message()); parse_internal_link("www%2Etelegram.dog/levlam/1", message());
parse_internal_link("www%252Etelegram.dog/levlam/1", nullptr); parse_internal_link("www%252Etelegram.dog/levlam/1", nullptr);
parse_internal_link("www.t.me/s/s/s/s/s/joinchat/1", chat_invite()); parse_internal_link("www.t.me/s/s/s/s/s/joinchat/1", chat_invite());
parse_internal_link("www.t.me/s/%73/%73/s/%73/joinchat/1", chat_invite());
parse_internal_link("http://t.me/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/joinchat/1", chat_invite()); parse_internal_link("http://t.me/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/joinchat/1", chat_invite());
parse_internal_link("http://t.me/levlam/1", message()); parse_internal_link("http://t.me/levlam/1", message());
parse_internal_link("https://t.me/levlam/1", message()); parse_internal_link("https://t.me/levlam/1", message());