Code correctness refers to a software performing in accordance with the specification. Code correctness can to be assessed in the following ways:
- The software meets the design requirements
- The software responds correctly to both valid and invalid inputs
- The software can be successfully installed and run on the hardware and OS with the intended configuration (and not only in the development environment)
Many types of testing can be used to verify code correctness. Let us mention three key types.