Modulo:maudilingdial/dokumentado
Tio estas la paĝo de la dokumentado por Modulo:maudilingdial
Dokumentaĵo de MODULO | ||
Memtesto disponeblas sube. |
|
- vokata sole el
{{aŭdo}}
, dependas de Modulo:loaddata-tbllingvoj
- #T00 (no params, too few)
- expected result: "="
- actual result: "="
- #T01 (two params, still too few)
- expected result: "="
- actual result: "="
- #T02 ({maudilingdial|ek|four|l|nine}, 3 params, left one bad)
- expected result: "="
- actual result: "="
- #T03 ({maudilingdial|ek|seven|eight|nine}, 3 params, middle one bad)
- expected result: "="
- actual result: "="
- #T04 ({maudilingdial|ek|seven|d|abcdefghijklmnopxabcdefghijklmnop}, 3 params, right one bad)
- expected result: "="
- actual result: "="
- #T10 ({maudilingdial|ek|en-us-rail.oga|l|-}, request "l" and SUCCESS)
- expected result: "en"
- actual result: "en"
- #T11 ({maudilingdial|ek|en-us-rail.oga|d|-}, request "d" and SUCCESS)
- actual result: "US"
- expected result: "US"
- #T12 (maudilingdial|ek|en-us-r.oga|d|-}, request "d" and SUCCESS, equal minimum, valid)
- expected result: "US"
- actual result: "US"
- #T13 ({maudilingdial|ek|en-us+r.oga|d|xx}, request "d" and FAILURE, equal minimum but only one dash "-" in filename)
- expected result: "XX" (uppercase even here)
- actual result: "XX"
- #T14 ({maudilingdial|ek|en-us+r.oga|d|xxxx}, request "d" and FAILURE, equal minimum but only one dash "-" in filename)
- expected result: "xxxx" (NOT uppercase)
- actual result: "xxxx"
- #T15 ({maudilingdial|ek|en-us-r.og|d|-}, request "d" and FAILURE, length below minimum)
- expected result: "-"
- actual result: "-"
- #T16 ({maudilingdial|ek|eN-uS-rail.oga|d|-}, request "d" and SUCCESS, tolerable strange case)
- expected result: "US"
- actual result: "US"
- #T17 ({maudilingdial|ek|pen-bus-rail.oga|l|-}, request "l" and SUCCESS)
- expected result: "pen"
- actual result: "pen" (3+3)
- #T18 ({maudilingdial|ek|pen-bus-rail.oga|d|-}, request "d" and SUCCESS)
- expected result: "BUS"
- actual result: "BUS" (3+3)
- #T20 ({maudilingdial|ek|en-abus-rail.oga|l|-}, request "l" and SUCCESS, although "d" in filename is bad)
- expected result: "en"
- actual result: "en"
- #T21 ({maudilingdial|ek|en-abus-rail.oga|d|-}, request "d" and FAILURE, since "d" in filename is bad)
- expected result: "-"
- actual result: "-"
- #T22 ({#invoke:maudilingdial|ek|entr-us-rail.oga|l|-}, bad "l" NOT found)
- expected result: "-"
- actual result: "-"
- #T23 ({#invoke:maudilingdial|ek|entr-us-rail.oga|d|-}, "d" NOT found since "l" bad)
- expected result: "-"
- actual result: "-"
- #T30 ({maudilingdial|ek|en-us-rail.oga|l|-|ling=id}, request "l", parameter "ling=" overrides)
- expected result: "id"
- actual result: "id"
- #T31 ({maudilingdial|ek|en-us-rail.oga|l|-|dial=uk}, "dial=" supplied but request "l", no override)
- expected result: "en"
- actual result: "en"
- #T32 ({maudilingdial|ek|en-us-rail.oga|d|-|dial=uk}, request "d", parameter "dial=" overrides)
- expected result: "UK"
- actual result: "UK"
- #T33 ({maudilingdial|ek|en-us-rail.oga|d|-|dial=Fuk}, request "d", parameter "dial=" overrides)
- expected result: "FUK"
- actual result: "FUK"
- #T34 ("dial=Fusk")
- expected result: "Fusk"
- actual result: "Fusk"
- #T35 ("dial=(uk)", bad but acceptable for us)
- expected result: "(uk)"
- actual result: "(uk)"
- #T36 ("dial={uk}", rejected due to curly at begin)
- expected result: "US"
- actual result: "US"
- #T40 ({maudilingdial|ek|LL-Q143 (epo)-Mojosulo-nenio.wav|l|damn}, request "l")
- expected result: "eo"
- actual result: "eo"
- #T41 ({maudilingdial|ek|LL-Q1405077 (zepo)-Mojosulo-nuenio.wav|l|damn}, request "l")
- expected result: "kj"
- actual result: "kj"
- #T42 ({maudilingdial|ek|LL-Q143 (epo)-Mojosulo-nenio.wav|d|damn}, request "d", no dialect exists)
- expected result: "damn"
- actual result: "damn"
- #T43 ({maudilingdial|ek|LL-P143 (epo)-Mojosulo-nenio.wav|l|damn}, request "l")
- expected result: "ll" (name is invalid for LLQ pattern and thus processed as traditional with bad result)
- actual result: "ll"
- #T44 ({maudilingdial|ek|LL-Q99 (zep)-Mojosulo-nuen.wav|l|damn}, request "l", number too short)
- expected result: "damn"
- actual result: "damn"
- #T45 ({maudilingdial|ek|LL-Q9999999999 (zzp)-Malmojosulo-xxnuen.wav|l|toolong}, request "l", number too long)
- expected result: "toolong"
- actual result: "toolong"
- #T46 ({maudilingdial|ek|LL-Q1405077 (zep)-Mojosulo-nuenio.wav|l|damn|ling=SV}, request "l", parameter "ling=" overrides)
- expected result: "sv"
- actual result: "sv"