Convert cron expressions into human readable descriptions
Overall
score
100%
{
"context": "This criteria evaluates the engineer's ability to use cronstrue's monthStartIndexZero configuration option to correctly interpret cron expressions with JavaScript Date-style month indexing (0-11) and convert them into accurate human-readable descriptions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses cronstrue package",
"description": "Solution imports and uses the cronstrue package (either via require or import)",
"max_score": 15
},
{
"name": "Calls toString function",
"description": "Solution calls cronstrue.toString() or equivalent function to convert cron expressions to human-readable text",
"max_score": 20
},
{
"name": "Sets monthStartIndexZero option",
"description": "Solution passes an options object with monthStartIndexZero set to true when calling cronstrue.toString()",
"max_score": 40
},
{
"name": "Correct January handling",
"description": "Solution correctly interprets month 0 as January (passes test case for \"0 9 * 0 *\")",
"max_score": 10
},
{
"name": "Correct month ranges",
"description": "Solution correctly interprets month ranges with zero-indexing (passes test case for \"0 14 * 5-7 *\" as June-August)",
"max_score": 10
},
{
"name": "Correct December handling",
"description": "Solution correctly interprets month 11 as December (passes test case for \"*/15 * * 11 *\")",
"max_score": 5
}
]
}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