This commit is contained in:
Ashok Narayan 2026-09-04 02:10:25 +00:00 committed by GitHub
commit 8c05dafeb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -83,8 +83,10 @@ that check whether a condition is true. An assertion's result can be *success*,
*nonfatal failure*, or *fatal failure*. If a fatal failure occurs, it aborts the
current function; otherwise the program continues normally.
*Tests* use assertions to verify the tested code's behavior. If a test crashes
or has a failed assertion, then it *fails*; otherwise it *succeeds*.
*Tests* use assertions to verify the tested code's behavior. If a test terminates
abnormally (for example due to an uncaught exception, segmentation fault, or
other runtime error) or has a failed assertion, then it *fails*; otherwise it
*succeeds*.
A *test suite* contains one or many tests. You should group your tests into test
suites that reflect the structure of the tested code. When multiple tests in a