From 8c878e3d34cbcf4dd8dca9d25ca5eb4bf10652b8 Mon Sep 17 00:00:00 2001 From: Gryllida A Date: Sun, 24 Mar 2013 22:35:21 +1030 Subject: [PATCH] Added interwiki test --- t/WikiLinkParser.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/WikiLinkParser.t b/t/WikiLinkParser.t index 660f33e..a504a6e 100644 --- a/t/WikiLinkParser.t +++ b/t/WikiLinkParser.t @@ -47,8 +47,12 @@ is_deeply( ["$prefix/Dog#What_is"], 'Gets a section name with spaces properly' ); +is_deeply( + WikiLinkParser->get_urls_by_text("[[wikipedia:fr:Dog]]", $mw), + ['https://en.wikipedia.org/wiki/fr:Dog'], # this forwards to fr.wp.org + 'Gets interwiki links properly' +); - -done_testing( 6 ); +done_testing( 7 ); -- 2.11.4.GIT