]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po.t: cleanup
authorintrigeri <intrigeri@boum.org>
Wed, 12 Nov 2008 23:52:16 +0000 (00:52 +0100)
committerintrigeri <intrigeri@boum.org>
Wed, 12 Nov 2008 23:54:51 +0000 (00:54 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
t/po.t

diff --git a/t/po.t b/t/po.t
index 752fc95c6ecbb3ffce11b6269646a13bec51f719..e5f56a08d59463f2788fbd8f82625c5a87cb6f1e 100755 (executable)
--- a/t/po.t
+++ b/t/po.t
@@ -67,32 +67,21 @@ foreach my $page (keys %pagesources) {
 ### istranslatable/istranslation
 # we run these tests twice because memoization attempts made them
 # succeed once every two tries...
+foreach (1, 2) {
 ok(IkiWiki::Plugin::po::istranslatable('index'), "index is translatable");
-ok(IkiWiki::Plugin::po::istranslatable('index'), "index is translatable");
-ok(IkiWiki::Plugin::po::istranslatable('/index'), "/index is translatable");
 ok(IkiWiki::Plugin::po::istranslatable('/index'), "/index is translatable");
 ok(! IkiWiki::Plugin::po::istranslatable('index.fr'), "index.fr is not translatable");
-ok(! IkiWiki::Plugin::po::istranslatable('index.fr'), "index.fr is not translatable");
-ok(! IkiWiki::Plugin::po::istranslatable('index.es'), "index.es is not translatable");
 ok(! IkiWiki::Plugin::po::istranslatable('index.es'), "index.es is not translatable");
 ok(! IkiWiki::Plugin::po::istranslatable('/index.fr'), "/index.fr is not translatable");
-ok(! IkiWiki::Plugin::po::istranslatable('/index.fr'), "/index.fr is not translatable");
-ok(! IkiWiki::Plugin::po::istranslation('index'), "index is not a translation");
 ok(! IkiWiki::Plugin::po::istranslation('index'), "index is not a translation");
 ok(IkiWiki::Plugin::po::istranslation('index.fr'), "index.fr is a translation");
-ok(IkiWiki::Plugin::po::istranslation('index.fr'), "index.fr is a translation");
 ok(IkiWiki::Plugin::po::istranslation('index.es'), "index.es is a translation");
-ok(IkiWiki::Plugin::po::istranslation('index.es'), "index.es is a translation");
-ok(IkiWiki::Plugin::po::istranslation('/index.fr'), "/index.fr is a translation");
 ok(IkiWiki::Plugin::po::istranslation('/index.fr'), "/index.fr is a translation");
 ok(IkiWiki::Plugin::po::istranslatable('test2'), "test2 is translatable");
-ok(IkiWiki::Plugin::po::istranslatable('test2'), "test2 is translatable");
-ok(! IkiWiki::Plugin::po::istranslation('test2'), "test2 is not a translation");
 ok(! IkiWiki::Plugin::po::istranslation('test2'), "test2 is not a translation");
 ok(! IkiWiki::Plugin::po::istranslatable('test3'), "test3 is not translatable");
-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");
+}
 
 ### links
 require IkiWiki::Render;