Type: url

Original: https://arxiv.org/pdf/2312.04687

Status: generated

Summary

The full text of a paper introducing LLM4TDD, a human-in-the-loop process in which a developer guides an LLM to generate code by presenting unit tests one at a time in a test-driven development cycle. An empirical study with ChatGPT on 70 LeetCode problems reports correct code for 62 (88.5%) at an average tests-to-prompts ratio of 5:8, and distills best practices such as sanitizing function names, avoiding ambiguous input-output tests, and preferring test code over plain-text test descriptions.

Generated pages