67 lines
1011 B
JSON
67 lines
1011 B
JSON
{
|
|
"function": "keyToAction",
|
|
"cases": [
|
|
{
|
|
"name": "space-toggles-pause",
|
|
"args": [
|
|
" "
|
|
],
|
|
"expected": {
|
|
"tag": "TogglePause"
|
|
}
|
|
},
|
|
{
|
|
"name": "r-restarts",
|
|
"args": [
|
|
"r"
|
|
],
|
|
"expected": {
|
|
"tag": "Restart"
|
|
}
|
|
},
|
|
{
|
|
"name": "R-restarts",
|
|
"args": [
|
|
"R"
|
|
],
|
|
"expected": {
|
|
"tag": "Restart"
|
|
}
|
|
},
|
|
{
|
|
"name": "ArrowUp-still-turns-up",
|
|
"args": [
|
|
"ArrowUp"
|
|
],
|
|
"expected": {
|
|
"tag": "Turn",
|
|
"dir": "Up"
|
|
}
|
|
},
|
|
{
|
|
"name": "d-still-turns-right",
|
|
"args": [
|
|
"d"
|
|
],
|
|
"expected": {
|
|
"tag": "Turn",
|
|
"dir": "Right"
|
|
}
|
|
},
|
|
{
|
|
"name": "Enter-is-not-bound",
|
|
"args": [
|
|
"Enter"
|
|
],
|
|
"expected": null
|
|
},
|
|
{
|
|
"name": "empty-string-is-not-bound",
|
|
"args": [
|
|
""
|
|
],
|
|
"expected": null
|
|
}
|
|
]
|
|
}
|