From a51fd2251b03955aa1a1761e5606fd2739e533ca Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Fri, 21 Aug 2009 04:44:46 +0000 Subject: [PATCH] Add and modify parser test for new language converter rules. --- maintenance/parserTests.txt | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) 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) -- 2.20.1