Viết test cho tôi
A ready-to-use “Lập trình” AI prompt template. Replace the (bracketed) parts below with your own needs.
Prompt template
Hãy viết unit test cho hàm dưới đây, bao phủ các trường hợp thông thường và trường hợp biên (null, giá trị cực trị, đầu vào sai), và giải thích mỗi test kiểm tra điều gì. Hàm: "___"
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.