2006-05-04 20:51:26 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
2007-03-02 01:37:22 +01:00
|
|
|
use Test::More tests => 7;
|
2006-05-04 20:51:26 +02:00
|
|
|
|
|
|
|
BEGIN { use_ok("IkiWiki"); }
|
|
|
|
|
2008-09-27 20:14:36 +02:00
|
|
|
is(pagetitle("foo_bar"), "foo bar");
|
|
|
|
is(pagetitle("foo_bar_baz"), "foo bar baz");
|
|
|
|
is(pagetitle("foo_bar__33__baz"), "foo bar!baz");
|
|
|
|
is(pagetitle("foo_bar__1234__baz"), "foo barӒbaz");
|
|
|
|
is(pagetitle("foo_bar___33___baz"), "foo bar ! baz");
|
|
|
|
is(pagetitle("foo_bar___95___baz"), "foo bar _ baz");
|