From 67c7542672e92642339a114692882cec494e9886 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 3 Feb 2019 13:07:01 +0000 Subject: t: Exercise Chinese and Cyrillic page titles Signed-off-by: Simon McVittie --- t/titlepage.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/titlepage.t') diff --git a/t/titlepage.t b/t/titlepage.t index d6bb1b121..a09432fd7 100755 --- a/t/titlepage.t +++ b/t/titlepage.t @@ -2,6 +2,7 @@ use warnings; use strict; use Test::More; +use utf8; BEGIN { use_ok("IkiWiki"); } @@ -14,6 +15,8 @@ is(titlepage("foo bar_baz"), "foo_bar__95__baz"); is(titlepage("foo bar\xACbaz"), "foo_bar__172__baz", 'U+00AC is in Latin-1 range'); is(titlepage("foo bar\x{04D2}baz"), "foo_bar\x{04D2}baz", 'U+04D2 is alphanumeric'); is(titlepage("foo bar\x{2260}baz"), "foo_bar__8800__baz", 'U+2260 is nonalphanumeric'); +is(titlepage("中文"), "中文", 'Chinese'); +is(titlepage("Кириллица"), "Кириллица", 'Cyrillic'); is(titlepage("foo bar\x{0001F4A9}baz"), "foo_bar__128169__baz", 'U+1F4A9 is outside BMP'); done_testing; -- cgit v1.2.3