Modulo:mchklngcode/dokumentado
Aspekto
Tio estas la paĝo de la dokumentado por Modulo:mchklngcode
Dokumentaĵo de MODULO | ||
Memtesto disponeblas sube. |
|
- dependas de
((loaddata-tbllingvoj))
kaj{{tbllingvoj}}
- vokata interalie el
{{t}}
,{{deveno3}}
,{{Lingvo}}
,{{elpropra}}
- serĉo por "mchklngcode"
- serĉo por "xx="
- ŝanĝo 2024-08-27 "xx=" -> "yy="
- #T00 (no params, evil)
- expected result: "0" (evil)
- actual result: "0"
- #T01 ("eo", default binary output, only 1 code is tested)
- expected result: "1" (tolerable)
- actual result: "1"
- #T02 ("eo|crap", default binary output, only 1 code is tested)
- expected result: "1" (tolerable)
- actual result: "1"
- #T03 ("eo|sv|id", 3 anon params, evil)
- expected result: "0" (evil)
- actual result: "0"
- #T04 ("eo|xx=b0000", all 5 defaults explicitely confirmed, binary output)
- expected result: "1" (tolerable)
- actual result: "1"
- #T04 ("eo|yy=b0-00000", all 8 defaults explicitely confirmed, binary output)
- expected result: "1" (tolerable)
- actual result: "1"
- #T05 ("eo|xx=b00000", parameter too long)
- expected result: "1" (bad, parameter "xx=" ignored)
- actual result: "1"
- #T05 ("eo|yy=b0-000000", parameter too long)
- expected result: "1" (bad, parameter "yy=" ignored)
- actual result: "1"
- #T06 ("eo|xx=b2000", invalid digit "2" in boolean position)
- expected result: "0" (bad, parameter "xx=" rejected)
- actual result: "0"
- #T06 ("eo|yy=b0-00200", invalid digit "2" in boolean position)
- expected result: "0" (bad, parameter "yy=" rejected)
- actual result: "0"
- #T07 ("eo|crap|xx=b1000", both codes are tested)
- expected result: "0" (bad, latter code is invalid)
- actual result: "0"
- #T07 ("eo|crap|yy=b1-00000", both codes are tested)
- expected result: "0" (bad, latter code is invalid)
- actual result: "0"
- #T10 ("eo|haw|xx=b1000", both codes are tested)
- expected result: "1" (good)
- actual result: "1"
- #T11 ("eo|??|xx=b1000", both codes are tested, "??" prohibited)
- expected result: "0" (bad)
- actual result: "0"
- #T12 ("eo|??|xx=b1200", both codes are tested, "??" allowed)
- expected result: "1" (good)
- actual result: "1"
- #T13 ("por|xx=b0000", binary output, "por" expl prohibited)
- expected result: "0" (evil)
- actual result: "0"
- #T14 ("por|xx=b0001", binary output, "por" allowed)
- expected result: "1" (tolerable)
- actual result: "1"
- #T15 ("eo|z|xx=b1101", both codes are tested, right "z" is bad)
- expected result: "0" (evil)
- actual result: "0"
- #T16 ("z|eo|xx=b1101", both codes are tested, left "z" is bad)
- expected result: "0" (evil)
- actual result: "0"
- #T17 ("epo|eo|xx=b1101", both codes are tested, "epo" allowed)
- expected result: "1" (tolerable)
- actual result: "1"
- #T20 ("id||xx=b1101", both codes are tested, empty param is bad)
- expected result: "0" (bad)
- actual result: "0"
- #T21 ("id||xx=b0101", only one code is tested, empty param is bad but ignored)
- expected result: "1" (good)
- actual result: "1"
- #T22 ("|id|xx=b0101", only one code is tested, empty early param is bad)
- expected result: "0" (bad)
- actual result: "0"
- #T23 ("t8i|xx=b0000", digits prohibited as default)
- expected result: "0" (bad)
- actual result: "0"
- #T24 ("t8i|yy=b0-11111", digits permitted)
- expected result: "1" (good)
- actual result: "1"
- #T30 ("grc|xx=t0000", tristate)
- expected result: "2" (good and known)
- actual result: "2"
- #T31 ("t8i|xx=t0010", tristate, digits permitted)
- expected result: "2" (good and known) or "1" (valid but unknown)
- actual result: "0"
- #T32 ("??|xx=t0200", tristate, "??" is allowed)
- expected result: "1" (valid but unknown)
- actual result: "1"
- #T33 ("???|xx=t0200", tristate, "??" is allowed but "???" is NOT)
- expected result: "0" (obviously invalid)
- actual result: "0"
- #T34 ("fra|xx=t0000", tristate, this code is expl banned)
- expected result: "0" (obviously invalid)
- actual result: "0"
- #T35 ("fra|xx=t0001", tristate, this code is expl banned but we do not care)
- expected result: "1" (valid but unknown)
- actual result: "1"
- #T40 ("f3i|xx=t0000", tristate, digits prohibited by default)
- expected result: "0" (obviously invalid)
- actual result: "0"
- #T41 ("f3i|xx=t0010", tristate, digits permitted)
- expected result: "1" (valid but unknown)
- actual result: "0"
- #42 ("fi3|xx=t0010", tristate, digits permitted but only in middle position)
- expected result: "0" (obviously invalid)
- actual result: "0"
- #43 ("3fi|xx=t0010", tristate, digits permitted but only in middle position)
- expected result: "0" (obviously invalid)
- actual result: "0"
- #50 ("grc|xx=k0000", 4 defaults explicitely confirmed, category mode)
- expected result: "" (empty string, good)
- actual result: ""
- #51 ("fri|xx=k0000|detxt=true", 4 defaults explicitely confirmed, category mode)
- expected result: N/A (valid but unknown, categories)
- actual result: "[[Kategorio:Nekonata lingvokodo]][[Kategorio:Nekonata lingvokodo nome (fri)]][[Kategorio:Nekonata lingvokodo loke (mchklngcode.do)]]"
- #52 ("fori|xx=k0000|detxt=true", 4 defaults explicitely confirmed, category mode)
- expected result: N/A (obviously invalid, categories)
- actual result: "[[Kategorio:Evidente nevalida lingvokodo]][[Kategorio:Evidente nevalida lingvokodo nome (fori)]][[Kategorio:Evidente nevalida lingvokodo loke (mchklngcode.do)]]"
* #T53 ("fri|xx=k0000", 4 defaults explicitely confirmed, category mode) * expected result: N/A (valid but unknown, categories) * actual result: "{{#invoke:mchklngcode|ek|fri|xx=k0000}}" * #T54 ("fori|xx=k0000", 4 defaults explicitely confirmed, category mode) * expected result: N/A (obviously invalid, categories) * actual result: "{{#invoke:mchklngcode|ek|fori|xx=k0000}}"
- note that tests #T20 ... #T22 use empty parameters
- note that tests #T53 and #T54 cannot be executed on the docs subpage