Tulis ujian untuk saya

A ready-to-use “Pengaturcaraan” AI prompt template. Replace the (bracketed) parts below with your own needs.

Prompt template
Tulis ujian unit untuk fungsi di bawah, merangkumi kes biasa dan keadaan sempadan (nilai null, nilai melampau, input tak sah), dan terangkan apa yang setiap ujian sahkan.

Fungsi: "___"

How to use this prompt

  1. Copy the whole prompt above and paste it into 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.