Updated toString test to new behaviour for null.toString()

This commit is contained in:
Owen Stephens 2018-06-14 12:19:30 +01:00
parent dc6573d17b
commit 5ecb1afe13

View File

@ -112,7 +112,7 @@ public class ToFromConversionTests extends RefineTest {
@Test @Test
public void testToString() throws CalendarParserException { public void testToString() throws CalendarParserException {
Assert.assertTrue(invoke("toString") instanceof EvalError); Assert.assertTrue(invoke("toString") instanceof EvalError);
Assert.assertEquals(invoke("toString", (Object) null), "null"); Assert.assertEquals(invoke("toString", (Object) null), "");
Assert.assertEquals(invoke("toString", Long.valueOf(100)),"100"); Assert.assertEquals(invoke("toString", Long.valueOf(100)),"100");
Assert.assertEquals(invoke("toString", Double.valueOf(100.0)),"100.0"); Assert.assertEquals(invoke("toString", Double.valueOf(100.0)),"100.0");
Assert.assertEquals(invoke("toString", Double.valueOf(100.0),"%.0f"),"100"); Assert.assertEquals(invoke("toString", Double.valueOf(100.0),"%.0f"),"100");