linkpage.t: Assert we can link to pages with literal underscore
Signed-off-by: Simon McVittie <smcv@debian.org>master
parent
2bde54c9dc
commit
9d1c88adf8
|
@ -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___38___baz");
|
is(linkpage("foo bar & baz"), "foo_bar___38___baz");
|
||||||
is(linkpage("foo bar_baz"), "foo_bar_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\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{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("foo bar\x{2260}baz"), "foo_bar__8800__baz", 'U+2260 is nonalphanumeric');
|
||||||
|
|
Loading…
Reference in New Issue