Abseil Team
62df7bdbc1
This change adjusts how `ASSERT_NEAR` and `EXPECT_NEAR` treats infinity, such that `ASSERT_NEAR(inf, inf, 0)` passes. This makes the behavior more consistent with `ASSERT_EQ(inf, inf)` which succeeds.
...
Some examples of asserts that now pass:
```
ASSERT_NEAR(inf, inf, 0)
ASSERT_NEAR(-inf, inf, inf)
ASSERT_NEAR(inf, x, inf) // x is any finite floating point value
```
PiperOrigin-RevId: 685748133
Change-Id: I7b3af377773e8e0031e4c6b86830cbbf76bf20c6
1 month ago
Abseil Team
a7f443b80b
Mention the optional third argument to TYPED_TEST_SUITE
...
PiperOrigin-RevId: 637896001
Change-Id: Ia3a61ceec4b842e864a0cdfad13e9897bf0ecaaa
6 months ago
Abseil Team
b1a777f319
Fix https://github.com/google/googletest/issues/4423
...
PiperOrigin-RevId: 623407029
Change-Id: I3559f11e1c18a4f151d521c6ac115c358a11b40c
7 months ago
Abseil Team
9d43b27f7a
Revert incorrect update.
...
PiperOrigin-RevId: 609387046
Change-Id: I03e42c39011fc7e9715f896591a44ebede1933b2
9 months ago
Abseil Team
7f409cb3c0
Add a note about argv requiring NULL termination.
...
Fixes : #4434
PiperOrigin-RevId: 596960654
Change-Id: I1f70cc0801764fe0328030c46254f82eb9893a49
10 months ago
Abseil Team
96eadf659f
Minor documentation correction.
...
PiperOrigin-RevId: 593126348
Change-Id: I78e12ab5dd2e5acc69b21250bdb04e62990b6309
11 months ago
Dino Radakovic
6abc9e3d79
Make references to `#include`s consistent across docs
...
PiperOrigin-RevId: 554561504
Change-Id: Ia02ab6ac646bf6637d6f500a4aaedd14e0a04798
1 year ago
Abseil Team
c875c4e224
Adjust includes to use <> instead of "", consistent with quickstart pages.
...
Right now, gtest documentation uses different #include syntax. The quickstart
pages (e.g., http://google.github.io/googletest/quickstart-bazel.html#create-and-run-a-binary ) are checked in with `#include <gtest/gtest.h>` However, other
documentation (such as the primer) uses `#include "gtest/gtest.h"` (e.g.,
https://google.github.io/googletest/primer.html#writing-the-main-function ).
PiperOrigin-RevId: 551878641
Change-Id: Iab93cc1da3ef4870a07b624071b75d6e9d3568c1
1 year ago
Abseil Team
251e720391
Change `::testing` to `testing` in Testing Reference doc
...
PiperOrigin-RevId: 544466397
Change-Id: Icb4d5fae38361cd75d47f908886831696eb2b1c9
1 year ago
Vũ Phạm
810fb81153
Fix typo
2 years ago
Abseil Team
3d568bdda5
Add support for the alternative base64 encoding in RFC 4648 section 5 to `WhenBase64Unescaped`.
...
PiperOrigin-RevId: 507527786
Change-Id: Ie5e088b1814981f6c760d7e25418a430172705ec
2 years ago
Ben Yang
3f9c7fcaa3
Update testing.md
...
Fixed Parameter Generator table
2 years ago
Abseil Team
643862d8ad
Mention `DescribeMatcher` in matchers.md
...
PiperOrigin-RevId: 504591836
Change-Id: I48c93490d0c3b7c6bfaceceb1cef5eedeacfe6c6
2 years ago
Jan
a41c3d0fb8
Fix table markup in testing.md
2 years ago
Baruch Burstein
3280a930bf
Custom type with Combine(). Fix for #3781
2 years ago
Abseil Team
7041051488
Clarify the pitfalls of EXPECT_THAT and highlight it's best practices
...
PiperOrigin-RevId: 450721917
Change-Id: I34d63a65b7158975abd46a9a14cded75439e7e7f
3 years ago
Abseil Team
a1cc8c5519
Add support for move-only and &&-qualified actions in WillOnce.
...
This provides a type-safe way for an action to express that it wants to be
called only once, or to capture move-only objects. It is a generalization of
the type system-evading hack in ByMove, with the improvement that it works for
_any_ action (including user-defined ones), and correctly expresses that the
action can only be used with WillOnce. I'll make existing actions benefit in a
future commit.
PiperOrigin-RevId: 440496139
Change-Id: I4145d191cca5655995ef41360bb126c123cb41d3
3 years ago
Szymon Sobik
132059ba0c
Adjust documentation regarding xml and json source file location otput.
3 years ago
Abseil Team
0e402173c9
Add a 3-arg overload for ResultOf() matcher that takes a description string for better error messages.
...
PiperOrigin-RevId: 427598749
Change-Id: I8c7a5d7b2dde017641534f1c7eed8dd56c33e845
3 years ago
Christian Clauss
ee1be03b43
Fix remaining typos discovered by codespell
3 years ago
Abseil Team
652ec31f9f
Googletest export
...
Introduce a new matcher for unescaping Base-64 strings to gmock.
PiperOrigin-RevId: 388471904
3 years ago
Abseil Team
8d51ffdfab
Googletest export
...
Remove unneeded using ::std::get;
PiperOrigin-RevId: 383688097
3 years ago
Abseil Team
8306020a3e
Googletest export
...
Add `Conditional` wrapper to gtest
This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood.
PiperOrigin-RevId: 383407665
3 years ago
Abseil Team
4ec4cd23f4
Googletest export
...
Implement 'Contains(e).Times(n)' matcher modifier which allows to test for arbitrary occurrences including absence with Times(0).
PiperOrigin-RevId: 382210276
3 years ago
Hyuk Myeong
1745a405eb
fix typos
3 years ago
Abseil Team
53495a2a7d
Googletest export
...
Create new Testing API reference
PiperOrigin-RevId: 376969148
4 years ago
Abseil Team
5f6a14c846
Googletest export
...
Create new Mocking Reference
PiperOrigin-RevId: 376951575
4 years ago
Abseil Team
d5d6ff940b
Googletest export
...
Create Assertions Reference
PiperOrigin-RevId: 375824718
4 years ago
Abseil Team
97f96cbc8a
Googletest export
...
Clean up heading levels and mention `::testing` namespace in Matchers Reference
PiperOrigin-RevId: 373242122
4 years ago
Abseil Team
5cfc63ddd5
Googletest export
...
Fix links in Matchers Reference
PiperOrigin-RevId: 372436732
4 years ago
Abseil Team
7e5a3a574e
Googletest export
...
Move actions reference into independent document
PiperOrigin-RevId: 371828549
4 years ago
Abseil Team
680a5aa337
Googletest export
...
Move matchers reference from cheat sheet into its own document
PiperOrigin-RevId: 370749693
4 years ago