Improved deep equality testing for Node.js and the browser with support for complex types and circular references.
Overall
score
96%
{
"context": "This evaluation assesses how effectively the engineer uses the deep-eql package to compare RegExp objects. The focus is on correctly importing and utilizing deep-eql's deepEqual function to compare regex patterns with their flags, rather than implementing manual comparison logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import deep-eql",
"description": "Correctly imports the deepEqual function from the 'deep-eql' package using require() or import statement",
"max_score": 15
},
{
"name": "Use deepEqual function",
"description": "Uses the deepEqual function from deep-eql to perform the comparison between RegExp objects, rather than implementing custom comparison logic",
"max_score": 40
},
{
"name": "Compare all patterns",
"description": "Iterates through all keys in the configuration objects and applies deepEqual to compare each regex pattern pair",
"max_score": 25
},
{
"name": "Correct return structure",
"description": "Returns an object with 'isValid' boolean and 'mismatches' array as specified, where isValid reflects whether all patterns matched and mismatches contains keys of differing patterns",
"max_score": 20
}
]
}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