เขียนเทสต์ให้ฉัน
A ready-to-use “Programming” AI prompt template. Replace the (bracketed) parts below with your own needs.
Prompt template
เขียน unit test ให้ฟังก์ชันด้านล่าง ครอบคลุมกรณีปกติและเงื่อนไขขอบ (ค่าว่าง ค่าสุดขั้ว อินพุตที่ผิด) และอธิบายว่าแต่ละเทสต์ตรวจสอบอะไร ฟังก์ชัน: "___"
How to use this prompt
- Copy the whole prompt above and paste it into ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.