Modulo:mchklngcode/dokumentado

El Vikivortaro
Salti al navigilo Salti al serĉilo

Tio estas la paĝo de la dokumentado por Modulo:mchklngcode

Memtesto de Modulo:mchklngcode - aktualigo
  • #00 (no params, bad)
  • expected result: "0" (bad)
  • actual result: "0"
  • #01 ("eo")
  • expected result: "1" (good)
  • actual result: "1"
  • #02 ("eo|crap", only 1 code is tested)
  • expected result: "1" (good)
  • actual result: "1"
  • #03 ("eo|sv|id", 3 anon params, bad)
  • expected result: "0" (bad)
  • actual result: "0"
  • #04 ("eo|xx=b0000", all 5 defaults explicitely confirmed)
  • expected result: "1" (good)
  • actual result: "1"
  • #05 ("eo|xx=b00000", parameter too long)
  • expected result: "0" (bad)
  • actual result: "0"
  • #06 ("eo|xx=b0020", invalid digit "2")
  • expected result: "0" (bad)
  • actual result: "0"
  • #07 ("eo|crap|xx=b1000", both codes are tested)
  • expected result: "0" (bad)
  • actual result: "0"
---------------------------------------
  • #10 ("eo|haw|xx=b1000", both codes are tested)
  • expected result: "1" (good)
  • actual result: "1"
  • #11 ("eo|??|xx=b1000", both codes are tested, "??" prohibited)
  • expected result: "0" (bad)
  • actual result: "0"
  • #12 ("eo|??|xx=b1100", both codes are tested, "??" allowed)
  • expected result: "1" (good)
  • actual result: "1"
  • #13 ("por|xx=b0000", "por" prohibited)
  • expected result: "0" (bad)
  • actual result: "0"
  • #14 ("por|xx=b0001", "por" allowed)
  • expected result: "1" (good)
  • actual result: "1"
  • #15 ("eo|z|xx=b1101", both codes are tested, right "z" is bad)
  • expected result: "0" (bad)
  • actual result: "0"
  • #16 ("z|eo|xx=b1101", both codes are tested, left "z" is bad)
  • expected result: "0" (bad)
  • actual result: "0"
  • #17 ("epo|eo|xx=b1101", both codes are tested, "epo" allowed)
  • expected result: "1" (good)
  • actual result: "1"
---------------------------------------
  • #20 ("|ek|id||xx=b1101", both codes are tested, empty is bad)
  • expected result: "0" (bad)
  • actual result: "0"
  • #21 ("|ek|id||xx=b0101", only one code is tested, empty is bad but ignored)
  • expected result: "1" (good)
  • actual result: "1"
  • #22 ("|ek||id|xx=b0101", only one code is tested, empty is bad)
  • expected result: "0" (bad)
  • actual result: "0"
  • #23 ("|ek|t8i|xx=b0000", digits prohibited as default)
  • expected result: "0" (bad)
  • actual result: "0"
  • #24 ("|ek|t8i|xx=b0010", digits permitted)
  • expected result: "1" (good)
  • actual result: "1"
---------------------------------------
  • #30 ("grc|xx=t0000", tristate)
  • expected result: "2" (good and known)
  • actual result: "2"
  • #31 ("t8i|xx=t0010", tristate, digits permitted)
  • expected result: "2" (good and known) or "1" (valid but unknown)
  • actual result: "1"
  • #32 ("??|xx=t0100", tristate, "??" is allowed)
  • expected result: "1" (valid but unknown)
  • actual result: "1"
  • #33 ("???|xx=t0100", tristate, "??" is allowed but "???" is NOT)
  • expected result: "0" (obviously invalid)
  • actual result: "0"
  • #34 ("fri|xx=t0000", tristate, this code is officially banned)
  • expected result: "1" (valid but unknown)
  • actual result: "1"
---------------------------------------
  • #40 ("f3i|xx=t0000", tristate, digits prohibited by default)
  • expected result: "0" (obviously invalid)
  • actual result: "0"
  • #41 ("f3i|xx=t0010", tristate, digits permitted)
  • expected result: "1" (valid but unknown)
  • actual result: "1"
  • #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: ""