Improved deep equality testing for Node.js and the browser with support for complex types and circular references.
Overall
score
96%
{
"context": "This criteria evaluates how well the engineer uses the deep-eql package's Temporal API support to compare Temporal objects (PlainDate, PlainDateTime, Instant, Duration). The focus is on correctly utilizing the package's built-in handling of Temporal types rather than implementing custom comparison logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses deep-eql package",
"description": "Imports and uses the deepEqual function from the deep-eql package as the primary comparison mechanism",
"max_score": 20
},
{
"name": "PlainDate comparison",
"description": "Correctly handles PlainDate comparisons by passing them to deepEqual, which internally uses the native .equals() method",
"max_score": 15
},
{
"name": "PlainDateTime comparison",
"description": "Correctly handles PlainDateTime comparisons by passing them to deepEqual, which internally uses the native .equals() method",
"max_score": 15
},
{
"name": "Instant comparison",
"description": "Correctly handles Instant comparisons by passing them to deepEqual, which internally uses the native .equals() method",
"max_score": 15
},
{
"name": "Duration comparison",
"description": "Correctly handles Duration comparisons by passing them to deepEqual, which internally compares total nanoseconds for accurate duration equality",
"max_score": 20
},
{
"name": "No manual Temporal logic",
"description": "Avoids manually calling .equals() or implementing custom Temporal comparison logic, instead relying on deep-eql's built-in Temporal support",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-deep-eqldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10