GitHub Copilot Train-the-Trainer
Live demo: bounded function
Start with intent and edge cases:
def normalize_username(value: str) -> str:
"""Return a lowercase username with surrounding whitespace removed."""
Ask Copilot to suggest the body, then inspect it against:
assert normalize_username(" Ada ") == "ada"
assert normalize_username("") == ""
Narrate every acceptance, rejection, edit, and test.