Switch readline commands to readline_cmd_t enum class

This commit is contained in:
ridiculousfish
2019-03-16 17:56:35 -07:00
parent 0841072462
commit 2c56e27d37
6 changed files with 323 additions and 286 deletions

View File

@@ -2999,9 +2999,8 @@ static void test_input() {
auto evt = input_readch();
if (!evt.is_readline()) {
err(L"Event is not a readline");
} else if (evt.get_readline() != R_DOWN_LINE) {
err(L"Expected to read char R_DOWN_LINE, but instead got %ls\n",
describe_char(evt.get_readline()).c_str());
} else if (evt.get_readline() != readline_cmd_t::R_DOWN_LINE) {
err(L"Expected to read char R_DOWN_LINE");
}
}