Skip to content

Commit

Permalink
Update README.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Aug 4, 2024
1 parent d6485e4 commit 40da3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Failed assertion performs `return`, aborting further test execution.

IMPORTANT: Because of the https://github.com/llvm/llvm-project/issues/73093[bug in Clang template type deduction] in versions older than 19.0, matchers with parameters (`LessThan`, `GreaterThan`, `EqualTo` and so on) require explicit template type specification: `ASSERT_THAT(0, Is::LessThan<int>(1))`.

You can also negate matchers using `ASSERT_THAT(Value, Is::Not::<assertion>)`.
You can also negate assertions using `ASSERT_THAT(Value, Is::Not::<matcher>)`.

Negated assertion example:
[source,cpp]
Expand Down

0 comments on commit 40da3a9

Please sign in to comment.