Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

ChatGPT / IT Support & Reliable Workflows

ChatGPT: review a small function with concrete test cases

Provide a self-contained function, language version and intended behavior. Keep credentials and production records out of the example.

Compiled for Sorlavit Kim · Published · Updated · 2 min read

Environment and inputs: ChatGPT user guide · Feature and source access depend on the active account, app and organization settings. Optional file or app steps have a text-excerpt fallback. No fixed model version, price or usage quota is assumed.

What you will make

A practical ChatGPT guide to review a small function with concrete test cases. Use the sample input and prompt, then check the result. Use a fictional small-office IT team as the practice setting. Keep the approved facts in a clearly labeled source block.

Prepare the source and scope

Provide a self-contained function, language version and intended behavior. Keep credentials and production records out of the example. Open the ChatGPT app or website and start a focused conversation for this exercise.

Try this prompt

In ChatGPT, provide the prepared input, then send the following request. For real work, replace fictional details with approved facts.

Review this function for correctness. Show one normal case, one boundary case and one failing input if one exists. Propose the smallest correction and explain compatibility assumptions.

Review the result

Run the cases in a disposable development environment and compare results with the stated requirements. Record each correction and its supporting source.

If the answer is wrong or incomplete

An assistant's claim that tests pass is not execution evidence. Record which checks you actually ran. For recurring work, keep the active source list with the project brief; for a one-off task, supply just the relevant excerpt.

Practice and completion check

Repeat with one incomplete input. Check the answer against the review criteria, remove unsupported claims and save the prompt with its source version. This workflow has not been verified in a customer deployment.

Source & further reading

OpenAI — Prompting

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles