Lines Matching refs:ai

32         DoubleAdder ai = new DoubleAdder();  in testConstructor()  local
33 assertEquals(0.0, ai.sum()); in testConstructor()
40 DoubleAdder ai = new DoubleAdder(); in testAddAndSum() local
41 ai.add(2.0); in testAddAndSum()
42 assertEquals(2.0, ai.sum()); in testAddAndSum()
43 ai.add(-4.0); in testAddAndSum()
44 assertEquals(-2.0, ai.sum()); in testAddAndSum()
51 DoubleAdder ai = new DoubleAdder(); in testReset() local
52 ai.add(2.0); in testReset()
53 assertEquals(2.0, ai.sum()); in testReset()
54 ai.reset(); in testReset()
55 assertEquals(0.0, ai.sum()); in testReset()
62 DoubleAdder ai = new DoubleAdder(); in testSumThenReset() local
63 ai.add(2.0); in testSumThenReset()
64 assertEquals(2.0, ai.sum()); in testSumThenReset()
65 assertEquals(2.0, ai.sumThenReset()); in testSumThenReset()
66 assertEquals(0.0, ai.sum()); in testSumThenReset()
87 DoubleAdder ai = new DoubleAdder(); in testToString() local
88 assertEquals(Double.toString(0.0), ai.toString()); in testToString()
89 ai.add(1.0); in testToString()
90 assertEquals(Double.toString(1.0), ai.toString()); in testToString()
97 DoubleAdder ai = new DoubleAdder(); in testIntValue() local
98 assertEquals(0, ai.intValue()); in testIntValue()
99 ai.add(1.0); in testIntValue()
100 assertEquals(1, ai.intValue()); in testIntValue()
107 DoubleAdder ai = new DoubleAdder(); in testLongValue() local
108 assertEquals(0, ai.longValue()); in testLongValue()
109 ai.add(1.0); in testLongValue()
110 assertEquals(1, ai.longValue()); in testLongValue()
117 DoubleAdder ai = new DoubleAdder(); in testFloatValue() local
118 assertEquals(0.0f, ai.floatValue()); in testFloatValue()
119 ai.add(1.0); in testFloatValue()
120 assertEquals(1.0f, ai.floatValue()); in testFloatValue()
127 DoubleAdder ai = new DoubleAdder(); in testDoubleValue() local
128 assertEquals(0.0, ai.doubleValue()); in testDoubleValue()
129 ai.add(1.0); in testDoubleValue()
130 assertEquals(1.0, ai.doubleValue()); in testDoubleValue()