diff options
author | Simon McVittie <smcv@debian.org> | 2019-02-03 12:48:40 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2019-02-03 12:49:05 +0000 |
commit | 9d1c88adf8556fa83aa3010b31e7184cad66a210 (patch) | |
tree | 768134dabc7a406aaa35f56ec3c5b5a0c40b862b /t | |
parent | 2bde54c9dc0e1776882f4e0fef5750296e848c5b (diff) | |
download | ikiwiki-9d1c88adf8556fa83aa3010b31e7184cad66a210.tar ikiwiki-9d1c88adf8556fa83aa3010b31e7184cad66a210.tar.gz |
linkpage.t: Assert we can link to pages with literal underscore
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 't')
-rwxr-xr-x | t/linkpage.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/linkpage.t b/t/linkpage.t index db5fc7ae5..f1ee235ef 100755 --- a/t/linkpage.t +++ b/t/linkpage.t @@ -11,6 +11,8 @@ is(linkpage("foo bar/baz"), "foo_bar/baz"); is(linkpage("foo bar&baz"), "foo_bar__38__baz"); is(linkpage("foo bar & baz"), "foo_bar___38___baz"); is(linkpage("foo bar_baz"), "foo_bar_baz"); +is(chr(95), '_'); +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'); |