Most of real-life programs:
a) contain hundreds lines of code or more, scatterred across numerous files;
b) are developed by more than one programmer;
c) used in environments that are different from developer's environment
Thus if you won't check how program works in real-life situation, the chance that it won't work at all would be close to 100%.