From c51202c11e1729d12014a78d545bd75db05acf02 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Thu, 13 Nov 2008 00:52:16 +0100 Subject: po.t: cleanup Signed-off-by: intrigeri --- t/po.t | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 't/po.t') diff --git a/t/po.t b/t/po.t index 752fc95c6..e5f56a08d 100755 --- 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; -- cgit v1.2.3