stoiclion's picture
Agent Workbench tasks and environment at e59670df
b5d1dbc verified
Raw History Blame Contribute Delete
357 Bytes
from solution import slugify
CASES = [
(('Hello World',), 'hello-world'),
]
failed = 0
for args, want in CASES:
got = slugify(*args)
status = 'ok' if got == want else 'FAIL'
failed += status == 'FAIL'
print(status, 'slugify', args, '->', repr(got), '(expected', repr(want) + ')')
print('passed', len(CASES) - failed, 'of', len(CASES))