No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

cfg_test.py 504B

hace 3 meses
12345678910111213141516171819202122
  1. from cfg import *
  2. from ht_Context import *
  3. def test_cfg_parseConfigTree(
  4. ) -> str:
  5. c = ht_createContext()
  6. c.cfgContents = [
  7. "[abc]",
  8. "width = 100",
  9. "wrongSep=another",
  10. "[def]",
  11. "anotherWrongSep -> whatever",
  12. "title = yo",
  13. "subtitle = whoa",
  14. ]
  15. c.recentField = "cfgContents"
  16. c = cfg_parseConfigTree(c)
  17. if (
  18. cld_len(c.cfgTree) == 2
  19. ):
  20. return "OK: cfg_parseConfigTree"
  21. return "ERR: cfg_parseConfigTree"