Co-authored-by: codegirl007 <codegirl-007@users.noreply.github.com>
19 lines
379 B
Go
19 lines
379 B
Go
package dockerx11
|
|
|
|
import "testing"
|
|
|
|
func TestX11KeyTranslatesLogicalNames(t *testing.T) {
|
|
tests := map[string]string{
|
|
"RIGHT": "Right",
|
|
"LEFT": "Left",
|
|
"ENTER": "Return",
|
|
"ESCAPE": "Escape",
|
|
"A": "a",
|
|
}
|
|
for input, want := range tests {
|
|
if got := toX11KeyName(input); got != want {
|
|
t.Errorf("toX11KeyName(%q) = %q, want %q", input, got, want)
|
|
}
|
|
}
|
|
}
|