MplUtils { public static String toString(double d) { if (d == (long) d) { return String.format("%d", (long) d); } else { return String.format("%s", d); } } protected  MplUtils(); static String commandWithoutLeadingSlash(String command); static String toString(double d); static Coordinate3D getBoundaries(Orientation3D orientation,
      Collection<Coordinate3D> coordinates); static Coordinate3D getMinCoordinate(Collection<Coordinate3D> coordinates); static Coordinate3D getMaxCoordinate(Collection<Coordinate3D> coordinates);  }
@Test public void test_toString_fuer_kleine_ganze_Zahl() { double d = 100; String act = MplUtils.toString(d); assertThat(act).isEqualTo("100"); }
@Test public void test_toString_fuer_negative_kleine_ganze_Zahl() { double d = -100; String act = MplUtils.toString(d); assertThat(act).isEqualTo("-100"); }
@Test public void test_toString_fuer_grosse_ganze_Zahl() { double d = 10000000000D; String act = MplUtils.toString(d); assertThat(act).isEqualTo("10000000000"); }
@Test public void test_toString_fuer_negative_grosse_ganze_Zahl() { double d = -10000000000D; String act = MplUtils.toString(d); assertThat(act).isEqualTo("-10000000000"); }
@Test public void test_toString_fuer_komma_Zahl() { double d = 100.123; String act = MplUtils.toString(d); assertThat(act).isEqualTo("100.123"); }
@Test public void test_toString_fuer_negative_komma_Zahl() { double d = -100.123; String act = MplUtils.toString(d); assertThat(act).isEqualTo("-100.123"); }
@Test public void test_toString_fuer_zero() { double d = 0; String act = MplUtils.toString(d); assertThat(act).isEqualTo("0"); }
@Test public void test_toString_fuer_negativ_zero() { double d = -1e-200 * 1e-200; "-0.0".equals(String.valueOf(d)); String act = MplUtils.toString(d); assertThat(act).isEqualTo("0"); }