เขียนเทสต์ครอบคลุมโค้ดนี้

A ready-to-use “Programming” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
เขียนเทสต์ให้โค้ดด้านล่าง ข้อกำหนด: ครอบคลุมกรณีปกติ กรณีขอบ และกรณีข้อผิดพลาด; ตั้งชื่อแต่ละเทสต์ให้ชัดเจนว่าทดสอบอะไร; ใช้เฟรมเวิร์กทดสอบที่นิยมของภาษานั้น; และชี้ว่ามีกรณีอื่นใดที่ควรเพิ่ม

โค้ด:
```
วางโค้ด
```

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing