/**
* Some checks for the addSeries() method.
*/
public void testAddSeries() {
double[] values = {-1.0, 0.0, 0.1, 0.9, 1.0, 1.1, 1.9, 2.0, 3.0};
HistogramDataset d = new HistogramDataset();
d.addSeries("S1", values, 2, 0.0, 2.0);
assertEquals(0.0, d.getStartXValue(0, 0), EPSILON);
assertEquals(1.0, d.getEndXValue(0, 0), EPSILON);
assertEquals(4.0, d.getYValue(0, 0), EPSILON);
assertEquals(1.0, d.getStartXValue(0, 1), EPSILON);
assertEquals(2.0, d.getEndXValue(0, 1), EPSILON);
assertEquals(5.0, d.getYValue(0, 1), EPSILON);
}