docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how effectively the engineer uses lodash's array joining functionality to format arrays into CSV strings. The focus is on proper usage of lodash.join or the native Array.prototype.join method with appropriate separator handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses lodash.join",
"description": "Implementation uses lodash's _.join() function to join array elements into a string",
"max_score": 40
},
{
"name": "Separator handling",
"description": "Correctly passes the separator parameter to the join function, with proper default value handling",
"max_score": 30
},
{
"name": "Empty array handling",
"description": "Correctly handles empty arrays by returning an empty string without additional logic needed",
"max_score": 15
},
{
"name": "Single element arrays",
"description": "Correctly handles single-element arrays, returning just the element without extra separators",
"max_score": 15
}
]
}