-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to write
expect.that(optionalInt).isPresent()
, `as…
…sertWithMessage(...).that(optionalInt).isPresent()`, etc., including for other types besides `OptionalInt`. That is, you no longer need to use `about(optionalsInts())`, etc. This CL does _not_ make it possible to write `Truth.assertThat(optionalInt).isPresent()`: For that, you still need to use `Truth8`. A future CL will eliminate the need to use `Truth8`. This continues our work on #746. (Compare previous cl/598637400.) RELNOTES=Added more `that` overloads to make it possible to write type-specific assertions when using `expect.that(optionalInt)`, etc. PiperOrigin-RevId: 602694153
- Loading branch information
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters