diff options
author | intrigeri <intrigeri@boum.org> | 2010-07-20 13:39:47 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-07-20 13:39:47 +0200 |
commit | c66fae8b16099fa8b0c3c86d38de0733b561d13f (patch) | |
tree | 8a14da97dcae4829ee1652e7c94efec8b9219361 | |
parent | 38014f0cad580c9f2468c1b72475b876209fb3e6 (diff) |
Added tests for po::pofiles.
-rwxr-xr-x | t/po.t | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -17,7 +17,7 @@ BEGIN { } } -use Test::More tests => 65; +use Test::More tests => 68; BEGIN { use_ok("IkiWiki"); } @@ -91,6 +91,13 @@ ok(! IkiWiki::Plugin::po::istranslatable('test3'), "test3 is not translatable"); ok(! IkiWiki::Plugin::po::istranslation('test3'), "test3 is not a translation"); } +### pofiles + +my @pofiles = IkiWiki::Plugin::po::pofiles(srcfile("index.mdwn")); +ok( @pofiles, "pofiles is defined"); +ok( @pofiles == 2, "pofiles has correct size"); +is_deeply(\@pofiles, ["$config{srcdir}/index.es.po", "$config{srcdir}/index.fr.po"], "pofiles content is correct"); + ### links require IkiWiki::Render; |