2122232425262728293031
{ ScaledDouble instance = new ScaledDouble(); instance.setValue(-1); double expResult = 0.4524; double result = instance.doubleValue(); assertEquals(expResult, result, 0.0001); } /** * Test of intValue method, of class ScaledDouble.
7778798081828384858687
instance.setValue(-3); instance.alterValue(5); instance.alterValue(-2); double expResult = 0.5; double result = instance.doubleValue(); assertEquals(expResult, result, 0.0); } /** * Test of floatValue method, of class ScaledDouble.
8990919293949596979899
@Test public void testInitialValue() { ScaledDouble instance = new ScaledDouble(); double expResult = 0.5; double result = instance.doubleValue(); assertEquals(expResult, result, 0.0); } /** * Test of doubleValue method, of class ScaledDouble.
103104105106107108109110111
{ ScaledDouble instance = new ScaledDouble(1000000); instance.setValue(-1); double expResult = 0.5; double result = instance.doubleValue(); assertEquals(expResult, result, 0.001); } }