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 to implement class instance comparison functionality. The focus is on proper usage of deep-eql's deepEqual function to compare objects based on their properties rather than constructors.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports deepEqual function",
"description": "The solution imports the deepEqual function from the deep-eql package (e.g., 'import deepEqual from \"deep-eql\"' or 'const deepEqual = require(\"deep-eql\")')",
"max_score": 20
},
{
"name": "Uses deepEqual correctly",
"description": "The areProfilesEqual function calls deepEqual with the two profile parameters as arguments and returns the result",
"max_score": 30
},
{
"name": "Handles same constructor",
"description": "The implementation correctly compares two profile objects created from the same class constructor, relying on deep-eql's property-based comparison",
"max_score": 15
},
{
"name": "Handles different constructors",
"description": "The implementation correctly compares two profile objects created from different class constructors, leveraging deep-eql's constructor-agnostic comparison capability",
"max_score": 20
},
{
"name": "Handles nested objects",
"description": "The implementation correctly compares profiles with nested objects (like address objects), utilizing deep-eql's recursive deep comparison capability",
"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