Convert cron expressions into human readable descriptions
Overall
score
100%
{
"context": "This criteria evaluates how effectively the engineer uses the cronstrue package to convert cron expressions with Quartz Nth occurrence (#) syntax into human-readable descriptions. The focus is on proper use of cronstrue's toString function and understanding of the Nth occurrence weekday syntax.",
"type": "weighted_checklist",
"checklist": [
{
"name": "cronstrue import",
"description": "Correctly imports the cronstrue package using require() or import statement",
"max_score": 10
},
{
"name": "toString function usage",
"description": "Uses cronstrue.toString() function to convert cron expressions to human-readable text",
"max_score": 30
},
{
"name": "Nth occurrence handling",
"description": "Successfully processes expressions with the # syntax (e.g., 1#3, 0#2, 5#1) representing Nth occurrence of a weekday",
"max_score": 30
},
{
"name": "Expression format support",
"description": "Correctly handles 5-part cron expressions (minute hour day-of-month month day-of-week) with the Nth occurrence syntax in the day-of-week field",
"max_score": 20
},
{
"name": "Return value handling",
"description": "Returns the human-readable string output from cronstrue.toString() without unnecessary modifications",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-cronstruedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10