commit | cdb36f60a3d3b251cf089c9a6e7c7e7203ff2a7c | [log] [tgz] |
---|---|---|
author | Grant Oakley <groakley@gmail.com> | Thu Sep 19 06:52:32 2019 -0700 |
committer | David P. Baker <dpb@google.com> | Mon Sep 23 11:35:40 2019 -0700 |
tree | fe7a75ea7f6b252c743e8db0f2fe8ae9b8fec4f1 | |
parent | 7072a7d3731f130a728acfd442350698dd4968c7 [diff] |
Special-cases equality testing empty strings against non-empty strings. Now prints "expected an empty string" or "but was an empty string" instead of "expected: " or "but was: ". Fixes #624 RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=270030326
Truth makes your test assertions and failure messages more readable. Similar to AssertJ, it natively supports many JDK and Guava types, and it is extensible to others.
Truth is owned and maintained by the Guava team. It is used in the majority of the tests in Google’s own codebase.
Read more at the main website.