]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
po: test beautify_urlpath with po_link_to=current
authorSimon McVittie <smcv@debian.org>
Sat, 25 Dec 2010 21:39:29 +0000 (21:39 +0000)
committerSimon McVittie <smcv@debian.org>
Sat, 25 Dec 2010 22:54:54 +0000 (22:54 +0000)
Same behaviour as 'default'.

t/po.t

diff --git a/t/po.t b/t/po.t
index 51321fa96c73d3a325064fb59bda6aa6b10fbdea..234c5891597e1efb89bb329bd53382c843549bbd 100755 (executable)
--- a/t/po.t
+++ b/t/po.t
@@ -17,7 +17,7 @@ BEGIN {
        }
 }
 
-use Test::More tests => 91;
+use Test::More tests => 93;
 
 BEGIN { use_ok("IkiWiki"); }
 
@@ -192,6 +192,10 @@ $msgprefix="beautify_urlpath (po_link_to=negotiated)";
 is(IkiWiki::beautify_urlpath('test1/index.html'), './test1/', "$msgprefix test1/index.html");
 is(IkiWiki::beautify_urlpath('test1/index.en.html'), './test1/', "$msgprefix test1/index.en.html");
 is(IkiWiki::beautify_urlpath('test1/index.fr.html'), './test1/', "$msgprefix test1/index.fr.html");
+$config{po_link_to}='current';
+$msgprefix="beautify_urlpath (po_link_to=current)";
+is(IkiWiki::beautify_urlpath('test1/index.en.html'), './test1/index.en.html', "$msgprefix test1/index.en.html");
+is(IkiWiki::beautify_urlpath('test1/index.fr.html'), './test1/index.fr.html', "$msgprefix test1/index.fr.html");
 
 ### re-scan
 refresh_n_scan('index.mdwn');