CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-deep-eql

Improved deep equality testing for Node.js and the browser with support for complex types and circular references.

Overall
score

96%

Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how well the engineer uses the deep-eql package to compare Date objects and data structures containing Date values. The focus is on proper utilization of deep-eql's deepEqual function rather than manual timestamp comparison or other approaches.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import deep-eql",
      "description": "Correctly imports the deepEqual function from the deep-eql package (e.g., using require, import, or import default)",
      "max_score": 15
    },
    {
      "name": "Use deepEqual function",
      "description": "Uses the deepEqual function from deep-eql as the primary comparison mechanism for Date objects and structures containing dates",
      "max_score": 30
    },
    {
      "name": "Direct comparison approach",
      "description": "Directly passes Date objects, arrays of Dates, or objects containing Dates to deepEqual without manually extracting or comparing timestamps (avoids using .getTime(), .valueOf(), or timestamp arithmetic)",
      "max_score": 25
    },
    {
      "name": "Handles invalid dates",
      "description": "Relies on deep-eql's native handling of invalid Date objects (two invalid dates should be equal) without custom validation logic",
      "max_score": 15
    },
    {
      "name": "Handles nested structures",
      "description": "Leverages deep-eql's recursive comparison for objects and arrays containing Date properties without implementing custom traversal logic",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-deep-eql

tile.json