whoops nums bitwised
This commit is contained in:
BIN
mayhem-party
BIN
mayhem-party
Binary file not shown.
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
6
testdata/INPUT_REMAP_FILE.yaml
vendored
6
testdata/INPUT_REMAP_FILE.yaml
vendored
@@ -2,3 +2,9 @@ w: i
|
||||
a: j
|
||||
s: k
|
||||
d: l
|
||||
q: u
|
||||
e: o
|
||||
1: 0
|
||||
2: 9
|
||||
3: 8
|
||||
4: 7
|
||||
|
||||
Reference in New Issue
Block a user