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 well the engineer uses the plist package to convert JavaScript objects containing Date values into properly formatted plist XML with ISO 8601 date serialization. The focus is on correct usage of the plist.build() function and verification that dates are serialized in the required ISO 8601 format.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses plist.build()",
"description": "The solution imports and uses the plist.build() function (or plist module's build method) to convert JavaScript objects to plist XML format.",
"max_score": 30
},
{
"name": "Passes Date objects",
"description": "The implementation correctly passes JavaScript Date objects within the data structure to plist.build() without manual date formatting or conversion.",
"max_score": 25
},
{
"name": "Returns XML string",
"description": "The function returns the XML string output from plist.build() as required by the API specification.",
"max_score": 15
},
{
"name": "ISO 8601 verification",
"description": "Tests verify that the output XML contains dates in proper ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ) as produced by plist's date serialization.",
"max_score": 20
},
{
"name": "Handles nested structures",
"description": "The solution correctly handles Date objects within nested objects and arrays, leveraging plist.build()'s recursive conversion capabilities.",
"max_score": 10
}
]
}