We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b11598e commit 996fa8fCopy full SHA for 996fa8f
core/src/test/java/com/google/common/truth/FactTest.java
@@ -54,6 +54,18 @@ public void twoFacts() {
54
.isEqualTo("foo : bar\nlonger name: other value");
55
}
56
57
+ @Test
58
+ public void numericFacts() {
59
+ assertThat(
60
+ makeMessage(
61
+ ImmutableList.<String>of(),
62
+ ImmutableList.of(
63
+ fact("expected", 802604),
64
+ fact("but was", 773804),
65
+ fact("outside tolerance", 9599))))
66
+ .isEqualTo("expected : 802604\nbut was : 773804\noutside tolerance: 9599");
67
+ }
68
+
69
@Test
70
public void oneFactWithoutValue() {
71
assertThat(makeMessage(ImmutableList.<String>of(), ImmutableList.of(simpleFact("foo"))))
0 commit comments