feat(js): m01 util and m02 model with tests, fixtures, purity audit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
5be3cebe71
commit
22c221a042
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user