Tulis ujian yang meliputi kod ini
A ready-to-use “Pengaturcaraan” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
Tulis ujian untuk kod di bawah. Keperluan: liputi kes biasa, sempadan, dan ralat; namakan setiap ujian dengan jelas untuk menyatakan apa yang diujinya; guna rangka kerja ujian yang biasa bagi bahasa itu; dan tunjukkan kes lain apa yang berbaloi ditambah. Kod: ``` tampal kod ```
How to use this prompt
- Copy the whole prompt above and paste it into Claude or 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.
Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing