tag: Avoid autocreating multiple tag pages that vary only in capitalization. The...
[ikiwiki.git] / t / linkpage.t
blob8085de15321240de18e334a064864db721fa84b3
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More tests => 7;
6 BEGIN { use_ok("IkiWiki"); }
8 is(linkpage("foo bar"), "foo_bar");
9 is(linkpage("foo bar baz"), "foo_bar_baz");
10 is(linkpage("foo bar/baz"), "foo_bar/baz");
11 is(linkpage("foo bar&baz"), "foo_bar__38__baz");
12 is(linkpage("foo bar & baz"), "foo_bar___38___baz");
13 is(linkpage("foo bar_baz"), "foo_bar_baz");