01 package com.x8ing.mc;
02
03 import junit.framework.TestCase;
04
05 public class StatisticTest extends TestCase {
06
07 public void testAverage1() {
08
09 double values[] = new double[] { 1, 4, 44, 123, 5 };
10
11 Statistic statistic = new Statistic(values);
12
13 assertTrue(35.4 == statistic.getAverage());
14
15 }
16
17 }
|