Math { static float min(float a, float b, float c) { return java.lang.Math.min(java.lang.Math.min(a, b), c); } private  Math();   }
@Test public void min3float() { assertEquals(5.45f, Math.min(10.1f, 5.45f, 13.12f), 0.0); assertEquals(0.1f, Math.min(0.1f, 5.45f, 13.12f), 0.0); assertEquals(-3.12f, Math.min(10.1f, 5.45f, -3.12f), 0.0); }
@Test public void min3int() { assertEquals(-10, Math.min(-10, 5, 13)); assertEquals(-13, Math.min(-10, 5, -13)); assertEquals(5, Math.min(10, 5, 13)); }
@Test public void min4int() { assertEquals(-10, Math.min(-10, 5, 3, 1)); assertEquals(-5, Math.min(10, -5, 13, 1)); assertEquals(3, Math.min(10, 5, 3, 15)); assertEquals(1, Math.min(10, 5, 3, 1)); }
@Test public void min4float() { assertEquals(-10.1f, Math.min(-10.1f, 5.45f, -3.12f, 36.9f), 0.0); assertEquals(-5.45f, Math.min(10.1f, -5.45f, -3.12f, 6.9f), 0.0); assertEquals(3.12f, Math.min(10.1f, 5.45f, 3.12f, 36.9f),0.0); assertEquals(16.9f, Math.min(100.1f, 25.45f, 23.12f, 16.9f), 0.0); }