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 the plist package to handle floating-point number conversions between plist XML format and JavaScript objects, specifically focusing on the parse() and build() functions for real/float data types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses plist.parse()",
"description": "The parsePlistConfig function uses plist.parse() to convert XML strings to JavaScript objects",
"max_score": 25
},
{
"name": "Uses plist.build()",
"description": "The buildPlistConfig function uses plist.build() to convert JavaScript objects back to plist XML strings",
"max_score": 25
},
{
"name": "Handles float parsing",
"description": "Correctly extracts floating-point numbers from parsed plist data, demonstrating understanding that <real> elements become JavaScript Numbers",
"max_score": 20
},
{
"name": "Preserves float precision",
"description": "The implementation preserves full floating-point precision during round-trip conversions, relying on plist's automatic handling of JavaScript Number types",
"max_score": 20
},
{
"name": "Round-trip conversion",
"description": "Successfully demonstrates round-trip conversion (XML → parse → manipulate → build → XML) with floating-point values maintaining accuracy",
"max_score": 10
}
]
}