Esempio n. 1
0
 /** Test method for {@link nl.lxtreme.ols.api.util.SizeUnit#format(double, int)}. */
 @Test
 public void testFormatAutoScaleOk() {
   assertEquals("0.00B", SizeUnit.format(0));
   assertEquals("10.00kB", SizeUnit.format(10240));
   assertEquals("10.00MB", SizeUnit.format(10240 * 1024));
   assertEquals("-10.00MB", SizeUnit.format(-10240 * 1024));
 }