| | @@ -78,10 +78,26 @@ |
| 78 | 78 | |
| 79 | 79 | def test_exit(self): |
| 80 | 80 | repl = CompanionREPL() |
| 81 | 81 | assert repl.handle_input("/exit") == "__QUIT__" |
| 82 | 82 | |
| 83 | + def test_bare_quit(self): |
| 84 | + repl = CompanionREPL() |
| 85 | + assert repl.handle_input("quit") == "__QUIT__" |
| 86 | + |
| 87 | + def test_bare_exit(self): |
| 88 | + repl = CompanionREPL() |
| 89 | + assert repl.handle_input("exit") == "__QUIT__" |
| 90 | + |
| 91 | + def test_bare_bye(self): |
| 92 | + repl = CompanionREPL() |
| 93 | + assert repl.handle_input("bye") == "__QUIT__" |
| 94 | + |
| 95 | + def test_bare_q(self): |
| 96 | + repl = CompanionREPL() |
| 97 | + assert repl.handle_input("q") == "__QUIT__" |
| 98 | + |
| 83 | 99 | |
| 84 | 100 | class TestHandleUnknownSlash: |
| 85 | 101 | def test_unknown_command(self): |
| 86 | 102 | repl = CompanionREPL() |
| 87 | 103 | output = repl.handle_input("/foobar") |
| 88 | 104 | |