Reset(F);
end;
Assertions provide another way of testing a Boolean condition anywhere in your source code. When an
Assert
statement fails, the program either halts with a runtime error or (if it uses the
SysUtils
unit)
raises an
EAssertionFailed exception. Assertions should be used only to test for conditions that you do not expect to occur.
Dostları ilə paylaş: