A universally-unique, lexicographically-sortable, identifier generator
78
{
"context": "This criteria evaluates how well the engineer uses the ulid package's Crockford Base32 encoding functions to implement binary data encoding and decoding. The focus is on correct usage of crockfordEncode and crockfordDecode functions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import crockfordEncode",
"description": "The solution imports the crockfordEncode function from the ulid package",
"max_score": 20
},
{
"name": "Import crockfordDecode",
"description": "The solution imports the crockfordDecode function from the ulid package",
"max_score": 20
},
{
"name": "Use crockfordEncode correctly",
"description": "The encode function correctly uses crockfordEncode to convert Uint8Array input to a Base32 string",
"max_score": 25
},
{
"name": "Use crockfordDecode correctly",
"description": "The decode function correctly uses crockfordDecode to convert Base32 string input to Uint8Array",
"max_score": 25
},
{
"name": "Handle empty inputs",
"description": "Both encode and decode functions properly handle empty inputs (empty Uint8Array and empty string respectively) using the ulid package functions",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-ulidevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10