Verify deterministic movement from observations
Co-authored-by: codegirl007 <codegirl-007@users.noreply.github.com>
This commit is contained in:
co-authored by
codegirl007
parent
3037dbc2dd
commit
c4f8dbeaaf
@@ -0,0 +1,18 @@
|
||||
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 := x11Key(input); got != want {
|
||||
t.Errorf("x11Key(%q) = %q, want %q", input, got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user