diff options
author | Joey Hess <joey@kitenet.net> | 2013-08-30 22:43:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-08-30 22:43:02 -0400 |
commit | 8833cfe30d121d8c097a5b1b0be2e1fb2e251e80 (patch) | |
tree | e4fce474314b4e58ebda5c2d7b295f38c0d84e6b /t | |
parent | db6f258745639cac9717c831a62003140480b692 (diff) | |
download | ikiwiki-8833cfe30d121d8c097a5b1b0be2e1fb2e251e80.tar ikiwiki-8833cfe30d121d8c097a5b1b0be2e1fb2e251e80.tar.gz |
Fix test suite to work with perl 5.18. Closes: #719969
Diffstat (limited to 't')
-rwxr-xr-x | t/po.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -135,7 +135,7 @@ is_deeply(\@{$links{'index.fr'}}, ['translatable.fr', 'nontranslatable'], "$msgp is_deeply(\@{$links{'translatable'}}, ['nontranslatable'], "$msgprefix translatable"); is_deeply(\@{$links{'translatable.es'}}, ['nontranslatable'], "$msgprefix translatable.es"); is_deeply(\@{$links{'translatable.fr'}}, ['nontranslatable'], "$msgprefix translatable.fr"); -is_deeply(\@{$links{'nontranslatable'}}, ['/', 'translatable', 'translatable.fr', 'translatable.es'], "$msgprefix nontranslatable"); +is_deeply([sort @{$links{'nontranslatable'}}], [sort('/', 'translatable', 'translatable.fr', 'translatable.es')], "$msgprefix nontranslatable"); $config{po_link_to}='current'; $msgprefix="links (po_link_to=current)"; @@ -146,7 +146,7 @@ is_deeply(\@{$links{'index.fr'}}, [ (map bestlink('index.fr', $_), ('translatabl is_deeply(\@{$links{'translatable'}}, [bestlink('translatable', 'nontranslatable')], "$msgprefix translatable"); is_deeply(\@{$links{'translatable.es'}}, ['nontranslatable'], "$msgprefix translatable.es"); is_deeply(\@{$links{'translatable.fr'}}, ['nontranslatable'], "$msgprefix translatable.fr"); -is_deeply(\@{$links{'nontranslatable'}}, ['/', 'translatable', 'translatable.fr', 'translatable.es'], "$msgprefix nontranslatable"); +is_deeply([sort @{$links{'nontranslatable'}}], [sort('/', 'translatable', 'translatable.fr', 'translatable.es')], "$msgprefix nontranslatable"); ### targetpage $config{usedirs}=0; |