(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestReadKey(t *testing.T) { |
| 29 | for _, test := range gKeyTests { |
| 30 | if got := readKey(test.ev); got != test.s { |
| 31 | t.Errorf("at input '%#v' expected '%s' but got '%s'", test.ev, test.s, got) |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestParseKey(t *testing.T) { |
| 37 | keyEqual := func(ev1, ev2 *tcell.EventKey) bool { |