Commit 6b01407
When falling back to plain AssertionError, still include the "expected" and "but was" lines.
I have no idea what I was thinking when I went out of my way to omit them in CL 353141904.
And I think it had crossed my mind at one point to test the contents of the AssertionError, but I did not....
This CL does *not* address the main discussion of the day from #333 (comment); it's just *another* bug I noticed along the way. Sigh.
RELNOTES=When JUnit 4 is excluded from the classpath, the `AssertionError` Truth generates as a substitute for `ComparisonFailure` now includes the expected and actual values that were missing in 1.1.1.
PiperOrigin-RevId: 3533192321 parent 2d65326 commit 6b01407
File tree
2 files changed
+8
-1
lines changed- core/src
- main/java/com/google/common/truth
- test/java/com/google/common/truth
2 files changed
+8
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
0 commit comments