A universally-unique, lexicographically-sortable, identifier generator
78
{
"context": "This criteria evaluates how well the engineer uses the ulid package's incrementBase32 function to implement a sequential Base32 identifier generator. The focus is on proper usage of the Base32 increment functionality provided by the package.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses incrementBase32",
"description": "The implementation imports and uses the incrementBase32 function from the ulid package",
"max_score": 50
},
{
"name": "Correct generator pattern",
"description": "The createSequentialGenerator function returns a closure that maintains state and calls incrementBase32 to produce the next identifier in sequence",
"max_score": 30
},
{
"name": "Proper state management",
"description": "The implementation correctly maintains the current Base32 string state between calls and updates it using incrementBase32",
"max_score": 20
}
]
}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