From 12e8343068b906f8b2afddc5569968a8a91fa5b0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:24:24 +0200 Subject: Adding upstream version 2.1.0. Signed-off-by: Daniel Baumann --- tests/test_port/fixtures/punycode.md | 77 ++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 tests/test_port/fixtures/punycode.md (limited to 'tests/test_port/fixtures/punycode.md') diff --git a/tests/test_port/fixtures/punycode.md b/tests/test_port/fixtures/punycode.md new file mode 100644 index 0000000..c726e82 --- /dev/null +++ b/tests/test_port/fixtures/punycode.md @@ -0,0 +1,77 @@ +Should decode punycode: + +. + +. +

http://☃.net/

+. + +. + +. +

http://☃.net/

+. + +Invalid punycode: + +. + +. +

http://xn--xn.com/

+. + +Invalid punycode (non-ascii): + +. + +. +

http://xn--γ.com/

+. + +Two slashes should start a domain: + +. +[](//☃.net/) +. +

+. + +Should auto-add protocol to autolinks: + +. +test google.com foo +. +

test google.com foo

+. + +Should support IDN in autolinks: + +. +test http://xn--n3h.net/ foo +. +

test http://☃.net/ foo

+. + +. +test http://☃.net/ foo +. +

test http://☃.net/ foo

+. + +. +test //xn--n3h.net/ foo +. +

test //☃.net/ foo

+. + +. +test xn--n3h.net foo +. +

test ☃.net foo

+. + +. +test xn--n3h@xn--n3h.net foo +. +

test xn--n3h@☃.net foo

+. -- cgit v1.2.3