From: Philip Tzou Date: Fri, 21 Aug 2009 04:44:46 +0000 (+0000) Subject: Add and modify parser test for new language converter rules. X-Git-Tag: 1.31.0-rc.0~40165 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=a51fd2251b03955aa1a1761e5606fd2739e533ca;p=lhc%2Fweb%2Fwiklou.git Add and modify parser test for new language converter rules. --- diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 5922161d9e..ef48c0f563 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -6897,16 +6897,34 @@ language=zh variant=zh-tw !! test -Adding explicit session-wise language variant mapping (A flag) +Explicit session-wise language variant mapping (A flag and - flag) !! options language=zh variant=zh-tw !! input --{A|zh:China;zh-tw:Taiwan}- is China +Taiwan is not China. +But -{A|zh:China;zh-tw:Taiwan}- is China, +(This-{-|zh:China;zh-tw:Taiwan}- should be stripped!) +and -{China}- is China. !! result -

Taiwan is Taiwan +

Taiwan is not China. +But Taiwan is Taiwan, +(This should be stripped!) +and China is China.

!! end +!! test +Explicit session-wise language variant mapping (H flag for hide) +!! options +language=zh variant=zh-tw +!! input +(This-{H|zh:China;zh-tw:Taiwan}- should be stripped!) +Taiwan is China. +!! result +

(This should be stripped!) +Taiwan is Taiwan. +

+!! end !! test Adding explicit conversion rule for title (T flag)