12345678910111213141516171819 |
- package door
- import (
- "testing"
- )
- func TestDisplayInput(t *testing.T) {
- verify := map[int]string{1: " \x08",
- 2: " \x08\x08",
- 5: " \x08\x08\x08\x08\x08",
- }
- for count, expect := range verify {
- got := string(DisplayInput(count))
- if expect != got {
- t.Errorf("DisplayInput %d, expected %#v, got %#v", count, expect, got)
- }
- }
- }
|