summaryrefslogtreecommitdiff
path: root/t/linkpage.t
blob: 8085de15321240de18e334a064864db721fa84b3 (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More tests => 7;
  5. BEGIN { use_ok("IkiWiki"); }
  6. is(linkpage("foo bar"), "foo_bar");
  7. is(linkpage("foo bar baz"), "foo_bar_baz");
  8. is(linkpage("foo bar/baz"), "foo_bar/baz");
  9. is(linkpage("foo bar&baz"), "foo_bar__38__baz");
  10. is(linkpage("foo bar & baz"), "foo_bar___38___baz");
  11. is(linkpage("foo bar_baz"), "foo_bar_baz");