Added tests for po::pofiles.
parent
38014f0cad
commit
c66fae8b16
9
t/po.t
9
t/po.t
|
@ -17,7 +17,7 @@ BEGIN {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
use Test::More tests => 65;
|
use Test::More tests => 68;
|
||||||
|
|
||||||
BEGIN { use_ok("IkiWiki"); }
|
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");
|
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
|
### links
|
||||||
require IkiWiki::Render;
|
require IkiWiki::Render;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue