46 lines
579 B
JSON
46 lines
579 B
JSON
{
|
|
"function": "delta",
|
|
"cases": [
|
|
{
|
|
"name": "up",
|
|
"args": [
|
|
"Up"
|
|
],
|
|
"expected": {
|
|
"x": 0,
|
|
"y": -1
|
|
}
|
|
},
|
|
{
|
|
"name": "down",
|
|
"args": [
|
|
"Down"
|
|
],
|
|
"expected": {
|
|
"x": 0,
|
|
"y": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "left",
|
|
"args": [
|
|
"Left"
|
|
],
|
|
"expected": {
|
|
"x": -1,
|
|
"y": 0
|
|
}
|
|
},
|
|
{
|
|
"name": "right",
|
|
"args": [
|
|
"Right"
|
|
],
|
|
"expected": {
|
|
"x": 1,
|
|
"y": 0
|
|
}
|
|
}
|
|
]
|
|
}
|