self-verifying code

noun
UK /ˌself ˈverɪfaɪɪŋ kəʊd/
US /ˌself ˈverɪfaɪɪŋ koʊd/

Code that can check itself to make sure it works right.

The self-verifying code caught its own mistake before anyone else noticed.


OTHER MEANINGS

2. Software that includes built-in tests to confirm its results are correct.

The team added self-verifying code so every build checks itself automatically.

3. A program that proves its output is right without needing an outside checker.

With self-verifying code, the calculator shows its answer is correct on its own.

4. Code that detects and reports its own errors while running.

The self-verifying code flagged a bad input and stopped before causing trouble.