Research portable Memory game | Исследовать портируемую игру Память
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cli_test.py 693B

6 달 전
12345678910111213141516171819202122232425262728293031323334353637383940
  1. from cli import *
  2. from cli_Context import *
  3. def cli_test_greetUser(
  4. ) -> str:
  5. c = cli_createContext()
  6. c = cli_greetUser(c)
  7. if (
  8. c.recentField == "outputGreeting"
  9. ):
  10. return "OK: cli_greetUser"
  11. #}
  12. return "ERR: cli_greetUser"
  13. #}
  14. def cli_test_showHelp_h(
  15. ) -> str:
  16. c = cli_createContext()
  17. c.input = "h"
  18. c = cli_showHelp(c)
  19. if (
  20. c.recentField == "outputHelp"
  21. ):
  22. return "OK: cli_showHelp_h"
  23. #}
  24. return "ERR: cli_showHelp_h"
  25. #}
  26. def cli_test_showHelp_help(
  27. ) -> str:
  28. c = cli_createContext()
  29. c.input = "help"
  30. c = cli_showHelp(c)
  31. if (
  32. c.recentField == "outputHelp"
  33. ):
  34. return "OK: cli_showHelp_help"
  35. #}
  36. return "ERR: cli_showHelp_help"
  37. #}