mirror of
https://github.com/google/googletest.git
synced 2026-07-30 16:26:24 +08:00
Merge 8d689755a5b55c2184c30fcdb70acc8cfa01574e into a0f06a70e3da7afa88da9527c43951bca1f7cef2
This commit is contained in:
commit
4d2b72901f
@ -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
|
*nonfatal failure*, or *fatal failure*. If a fatal failure occurs, it aborts the
|
||||||
current function; otherwise the program continues normally.
|
current function; otherwise the program continues normally.
|
||||||
|
|
||||||
*Tests* use assertions to verify the tested code's behavior. If a test crashes
|
*Tests* use assertions to verify the tested code's behavior. If a test terminates
|
||||||
or has a failed assertion, then it *fails*; otherwise it *succeeds*.
|
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
|
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
|
suites that reflect the structure of the tested code. When multiple tests in a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user