From 8b063a24d909bfac056668f00513bf92f6f17817 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 23 Jul 2008 18:57:27 -0400 Subject: case preservation --- t/renamepage.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/renamepage.t') diff --git a/t/renamepage.t b/t/renamepage.t index ce62bf468..b16ca3d23 100755 --- a/t/renamepage.t +++ b/t/renamepage.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 11; +use Test::More tests => 14; use Encode; BEGIN { use_ok("IkiWiki"); } @@ -34,6 +34,8 @@ is(try("z", "foo" => "bar", "[[xxx]]"), "[[xxx]]"); # unrelated link is(try("z", "foo" => "bar", "[[bar]]"), "[[bar]]"); # link already to new page is(try("z", "foo" => "bar", "[[foo]]"), "[[bar]]"); # basic conversion to new page name is(try("z", "foo" => "bar", "[[/foo]]"), "[[/bar]]"); # absolute link +is(try("z", "foo" => "bar", "[[Foo]]"), "[[Bar]]"); # preserve case +is(try("z", "foo" => "bar", "[[/Foo]]"), "[[/Bar]]"); # preserve case w/absolute is(try("z", "foo" => "bar", "[[foo]] [[xxx]]"), "[[bar]] [[xxx]]"); # 2 links, 1 converted is(try("z", "foo" => "bar", "[[xxx|foo]]"), "[[xxx|bar]]"); # conversion w/text is(try("z", "foo" => "bar", "[[foo#anchor]]"), "[[bar#anchor]]"); # with anchor -- cgit v1.2.3