or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-4/

{
  "context": "This evaluation assesses how well the engineer leverages mathjs's automatic type conversion system to handle operations between different numeric types (number, BigNumber, Fraction, Complex). The focus is on proper usage of mathjs functions that automatically convert between compatible types rather than implementing manual type conversion logic.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import mathjs functions",
      "description": "Correctly imports necessary mathjs functions (add, multiply, divide) or uses the entire mathjs object to access these operations.",
      "max_score": 10
    },
    {
      "name": "Use mathjs add",
      "description": "Uses mathjs's add() function (not JavaScript's + operator) to perform addition operations, which automatically handles type conversions between number, BigNumber, Fraction, and Complex types.",
      "max_score": 25
    },
    {
      "name": "Use mathjs multiply",
      "description": "Uses mathjs's multiply() function (not JavaScript's * operator) to perform multiplication operations, which automatically handles type conversions between different numeric types.",
      "max_score": 25
    },
    {
      "name": "Use mathjs divide",
      "description": "Uses mathjs's divide() function (not JavaScript's / operator) to perform division operations, which automatically handles type conversions between different numeric types.",
      "max_score": 25
    },
    {
      "name": "Type constructors usage",
      "description": "Correctly uses mathjs type constructor functions (bignumber(), fraction(), complex()) to create instances of specific numeric types for tests or operations.",
      "max_score": 10
    },
    {
      "name": "No manual conversion",
      "description": "Avoids implementing manual type checking or conversion logic (e.g., typeof checks, instanceof, custom conversion functions). Instead relies on mathjs's built-in automatic type conversion system.",
      "max_score": 5
    }
  ]
}