Skip to content

Commit

Permalink
Googletest export
Browse files Browse the repository at this point in the history
Internal change

PiperOrigin-RevId: 378672633
  • Loading branch information
Abseil Team authored and dinord committed Jun 11, 2021
1 parent 3c4b3a0 commit b050d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ The above uses both `ASSERT_*` and `EXPECT_*` assertions. The rule of thumb is
to use `EXPECT_*` when you want the test to continue to reveal more errors after
the assertion failure, and use `ASSERT_*` when continuing after failure doesn't
make sense. For example, the second assertion in the `Dequeue` test is
`ASSERT_NE(nullptr, n)`, as we need to dereference the pointer `n` later, which
`ASSERT_NE(n, nullptr)`, as we need to dereference the pointer `n` later, which
would lead to a segfault when `n` is `NULL`.

When these tests run, the following happens:
Expand Down

0 comments on commit b050d6c

Please sign in to comment.