diff options
Diffstat (limited to 't/linkpage.t')
-rwxr-xr-x | t/linkpage.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/linkpage.t b/t/linkpage.t new file mode 100755 index 000000000..8085de153 --- /dev/null +++ b/t/linkpage.t @@ -0,0 +1,13 @@ +#!/usr/bin/perl +use warnings; +use strict; +use Test::More tests => 7; + +BEGIN { use_ok("IkiWiki"); } + +is(linkpage("foo bar"), "foo_bar"); +is(linkpage("foo bar baz"), "foo_bar_baz"); +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"); |