Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
924B

  1. from shell import *
  2. from shell_Context import *
  3. def shell_test_exit_e(
  4. ) -> str:
  5. c = shell_createContext()
  6. c.input = "e"
  7. c = shell_processInput(c)
  8. if (
  9. c.recentField == "exit"
  10. ):
  11. return "OK: shell_exit_e"
  12. #}
  13. return "ERR: shell_exit_e"
  14. #}
  15. def shell_test_exit_exit(
  16. ) -> str:
  17. c = shell_createContext()
  18. c.input = "exit"
  19. c = shell_processInput(c)
  20. if (
  21. c.recentField == "exit"
  22. ):
  23. return "OK: shell_exit_exit"
  24. #}
  25. return "ERR: shell_exit_exit"
  26. #}
  27. def shell_test_exit_q(
  28. ) -> str:
  29. c = shell_createContext()
  30. c.input = "q"
  31. c = shell_processInput(c)
  32. if (
  33. c.recentField == "exit"
  34. ):
  35. return "OK: shell_exit_q"
  36. #}
  37. return "ERR: shell_exit_q"
  38. #}
  39. def shell_test_exit_quit(
  40. ) -> str:
  41. c = shell_createContext()
  42. c.input = "quit"
  43. c = shell_processInput(c)
  44. if (
  45. c.recentField == "exit"
  46. ):
  47. return "OK: shell_exit_quit"
  48. #}
  49. return "ERR: shell_exit_quit"
  50. #}