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-8/

{
  "context": "This criteria evaluates how well the engineer uses the deep-eql package to handle JavaScript arguments objects. The focus is on correctly utilizing deep-eql's ability to compare arguments objects element-by-element while respecting their distinct type nature.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import deep-eql",
      "description": "The solution imports the deepEqual function from the 'deep-eql' package correctly (e.g., `const deepEqual = require('deep-eql')` or `import deepEqual from 'deep-eql'`)",
      "max_score": 15
    },
    {
      "name": "Use deepEqual function",
      "description": "The solution uses the deepEqual function to perform the comparison between arguments and expected values",
      "max_score": 25
    },
    {
      "name": "Convert arguments properly",
      "description": "The solution correctly handles the arguments object by either converting it to an array for comparison (e.g., using Array.from() or spread operator) or by comparing individual elements using deepEqual in a loop",
      "max_score": 30
    },
    {
      "name": "Length validation",
      "description": "The solution checks that the number of arguments matches the expected length before or during comparison",
      "max_score": 15
    },
    {
      "name": "Element-wise comparison",
      "description": "The solution performs element-by-element deep comparison, ensuring nested objects/arrays are compared correctly using deep-eql's capabilities",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-deep-eql

tile.json