X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9d1c88adf8556fa83aa3010b31e7184cad66a210..e4f38459c02cf617f4621ce607caf48d0b1af771:/t/linkpage.t diff --git a/t/linkpage.t b/t/linkpage.t index f1ee235ef..20525fd5b 100755 --- a/t/linkpage.t +++ b/t/linkpage.t @@ -2,6 +2,7 @@ use warnings; use strict; use Test::More; +use utf8; BEGIN { use_ok("IkiWiki"); } @@ -16,6 +17,8 @@ is(linkpage("foo bar__95__baz"), "foo_bar__95__baz", 'underscore'); is(linkpage("foo bar\xACbaz"), "foo_bar__172__baz", 'U+00AC is in Latin-1 range'); is(linkpage("foo bar\x{04D2}baz"), "foo_bar\x{04D2}baz", 'U+04D2 is alphanumeric'); is(linkpage("foo bar\x{2260}baz"), "foo_bar__8800__baz", 'U+2260 is nonalphanumeric'); +is(linkpage("中文"), "中文", 'Chinese'); +is(linkpage("Кириллица"), "Кириллица", 'Cyrillic'); is(linkpage("foo bar\x{0001F4A9}baz"), "foo_bar__128169__baz", 'U+1F4A9 is outside BMP'); done_testing;