Add a test to verify that was fixed.
@@ -35,6 +35,14 @@ public class StringAssert_isEqualTo_Test extends StringAssertBaseTest {
verify(objects).assertEqual(getInfo(assertions), getActual(assertions), "R2D2");
}
+ @Test
+ public void should_not_interpret_string_with_String_format_semantics_when_given_a_single_string() {
+ // GIVEN
+ String string = "12.3 %";
+ // THEN
+ assertThat(string).isEqualTo("12.3 %");
+ }
+
@Test
public void should_throw_IllegalFormatException_when_given_an_invalid_format() {
// GIVEN
