summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-13 00:52:16 +0100
committerintrigeri <intrigeri@boum.org>2008-11-13 00:54:51 +0100
commitc51202c11e1729d12014a78d545bd75db05acf02 (patch)
treea7afa372671594d1a8ff5920d14438194b283a2d /t
parent40324175aa19a9940d4e1d30d61dfef205d80dc9 (diff)
po.t: cleanup
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 't')
-rwxr-xr-xt/po.t15
1 files changed, 2 insertions, 13 deletions
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;