Unit Test
N/A
单元测试
Unit Test · N/A · 单元测试 · YOO-nit test · automated test · test case · Programming · testing · quality · ciProgrammingautomated test test case/YOO-nit test/
Also known as: automated test, test case
Last updated August 8, 2026
Definition
A unit test automatically checks a small piece of code (often one function) against expected inputs and outputs to catch regressions early.
Real-World Example
A test that add(2, 3) returns 5 fails immediately if someone accidentally changes the function to multiply.
References
Related terms
discuss://translation · public
Translation discussion
Anyone can read and write here. Pick a display name — no email or account. Please keep the thread constructive. Thumb up a rendering you agree with — that helps the editor see consensus; it does not publish the term by itself. You can edit or delete your own comments from this browser; another device or cleared site data cannot.
Community lists who wrote, on which term, and when.
Loading discussion…