Encyclopedia

sanity check

Also found in: Wikipedia.
(redirected from Sanity testing)

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).
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
Mentioned in
Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.