Turn code examples into testcases.