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,61 @@
|
||||
{
|
||||
"function": "pointEquals",
|
||||
"cases": [
|
||||
{
|
||||
"name": "same-point",
|
||||
"args": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 4
|
||||
}
|
||||
],
|
||||
"expected": true
|
||||
},
|
||||
{
|
||||
"name": "different-x",
|
||||
"args": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 4
|
||||
}
|
||||
],
|
||||
"expected": false
|
||||
},
|
||||
{
|
||||
"name": "different-y",
|
||||
"args": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 5
|
||||
}
|
||||
],
|
||||
"expected": false
|
||||
},
|
||||
{
|
||||
"name": "swapped-coordinates",
|
||||
"args": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 3
|
||||
}
|
||||
],
|
||||
"expected": false
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user