diff --git a/mayhem-party b/mayhem-party deleted file mode 100755 index 0267c30..0000000 Binary files a/mayhem-party and /dev/null differ diff --git a/src/device/output/key/char.go b/src/device/output/key/char.go index f22b55d..99caff5 100644 --- a/src/device/output/key/char.go +++ b/src/device/output/key/char.go @@ -57,7 +57,7 @@ func ToChar(k Key) byte { } func FromChar(b byte) Key { - if b < 'a' { + if 'A' <= b && b <= 'Z' { b += 'a' - 'A' } v, ok := charToKey[b] diff --git a/src/device/output/key/char_test.go b/src/device/output/key/char_test.go index 9f705f7..70ef594 100644 --- a/src/device/output/key/char_test.go +++ b/src/device/output/key/char_test.go @@ -3,6 +3,9 @@ package key import "testing" func TestFromChar(t *testing.T) { + if got := FromChar('1'); got != N1 { + t.Error(got) + } if got := FromChar('a'); got != A { t.Error(got) } diff --git a/testdata/INPUT_REMAP_FILE.yaml b/testdata/INPUT_REMAP_FILE.yaml index 80eac00..6c52cd8 100644 --- a/testdata/INPUT_REMAP_FILE.yaml +++ b/testdata/INPUT_REMAP_FILE.yaml @@ -2,3 +2,9 @@ w: i a: j s: k d: l +q: u +e: o +1: 0 +2: 9 +3: 8 +4: 7