ZCYAI PROMPT LIBRARY
为既有函数编写边界测试
Prompt workbench
Add your context, then copy the prompt to your AI tool.
How do I fill this in?
Replace the placeholders with the details for your task, then review the preview and copy it. Leave out private information.
[函数源码]- Fill in project-specific details for this field; add units or constraints when relevant. Leave blank if unknown.
[预期契约]- Fill in project-specific details for this field; add units or constraints when relevant. Leave blank if unknown.
[测试框架]- Fill in project-specific details for this field; add units or constraints when relevant. Leave blank if unknown.
Example Output
AI output example after using the prompt above
虚构示例:分页函数页数为零时,先确认契约是返回空列表还是抛错,再写断言。