sanity check


Also found in: Wikipedia.

sanity check

(programming)
1. Checking code (or anything else, e.g. a Usenet posting) for completely stupid mistakes. Implies that the check is to make sure the author was sane when it was written; e.g. if a piece of scientific software relied on a particular formula and was giving unexpected results, one might first look at the nesting of parentheses or the coding of the formula, as a "sanity check", before looking at the more complex I/O or data structure manipulation routines, much less the algorithm itself.

Compare reality check.

2. A run-time test, either validating input or ensuring that the program hasn't screwed up internally (producing an inconsistent value or state).
References in periodicals archive ?
You can get pulled away from that when you're at work so having that bedrock is my sanity check.
Sewing and creating something was a sanity check for me.
Being the trusted resource that they turn to in those situations, whether for a 15-minute sanity check or a fully staffed six-month project, is the most gratifying part of my job.
Thus, despite being fairly familiar with the overall engagement, I found myself resorting to Wikipedia for a quick reminder and sanity check.
During this sanity check we continued to prosecute the ASW problem at hand, notified the other aircraft involved, and the range controller of our disabled state.
This is your "investing thesis" and will serve as a sanity check down the road when you're surrounded by short-term noise.
Least CTS / GTS failures - We request the participants to run a sanity check on their softwares by checking it against Android compatibility.
The Supply Officer's job is to do a sanity check, making sure all the services we are being billed for were received and fiscally accurate.
Developing an inhouse capability, looking at what you need, how you are going to deliver it and doing a sanity check to see if what they are delivering is appropriate and is going to provide you with the defense you need can take you away from your core business.
That's why it's critical to do a sanity check of any procedure loaded into the GPS before following it.
Over time, I have changed my thinking and have always told my clients to use data, but temper it with a sanity check.
However, when I get an answer to a question, I need to do a sanity check.