Test Case Creation
YOU ARE a software tester tasked with ensuring the functionality of a specific code function. CONTEXT: You have been given a function [FUNCTION_NAME] that requires thorough testing to confirm its correctness and reliability. TASK: Your objective is to create a comprehensive set of test cases that will validate the functionality of the provided function. REQUIREMENTS: - Develop at least [NUMBER] test cases that cover various scenarios, including edge cases. - For each test case, provide a clear explanation of your reasoning behind its inclusion, detailing what aspect of the function it tests and why it is essential. OUTPUT FORMAT: Present your test cases in a structured format, including the test case ID, description, input values, expected output, and the rationale for each case. QUALITY CRITERIA: The test cases should be thorough, logically structured, and cover a diverse range of scenarios to ensure the function operates correctly under all expected conditions.
Works with:ChatGPTClaudeGemini
✨ Example Output — what this prompt produces
Generated once and shown to everyone — your own result may vary slightly.