diff --git a/core/src/test/java/com/google/common/truth/FactTest.java b/core/src/test/java/com/google/common/truth/FactTest.java index 6a928abf2..13957496f 100644 --- a/core/src/test/java/com/google/common/truth/FactTest.java +++ b/core/src/test/java/com/google/common/truth/FactTest.java @@ -54,6 +54,18 @@ public void twoFacts() { .isEqualTo("foo : bar\nlonger name: other value"); } + @Test + public void numericFacts() { + assertThat( + makeMessage( + ImmutableList.of(), + ImmutableList.of( + fact("expected", 802604), + fact("but was", 773804), + fact("outside tolerance", 9599)))) + .isEqualTo("expected : 802604\nbut was : 773804\noutside tolerance: 9599"); + } + @Test public void oneFactWithoutValue() { assertThat(makeMessage(ImmutableList.of(), ImmutableList.of(simpleFact("foo"))))