- /* ===========================================================
- * JFreeChart : a free chart library for the Java(tm) platform
- * ===========================================================
- *
- * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
- *
- * Project Info: http://www.jfree.org/jfreechart/index.html
- *
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
- *
- * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
- * in the United States and other countries.]
- *
- * -----------------------
- * DataUtilitiesTests.java
- * -----------------------
- * (C) Copyright 2005, by Object Refinery Limited and Contributors.
- *
- * Original Author: David Gilbert (for Object Refinery Limited);
- * Contributor(s): -;
- *
- * $Id: DataUtilitiesTests.java,v 1.1 2005/03/04 11:50:11 mungady Exp $
- *
- * Changes
- * -------
- * 03-Mar-2005 : Version 1 (DG);
- *
- */
- package org.jfree.data.general.junit;
- import junit.framework.TestCase;
- import org.jfree.data.general.DataUtilities;
- /**
- * Some tests for the {@link DataUtilities} class.
- */
- public class DataUtilitiesTests extends TestCase {
- /**
- * Tests the createNumberArray2D() method.
- */
- public void testCreateNumberArray2D() {
- double[][] d = new double[2][];
- d[0] = new double[] {1.1, 2.2, 3.3, 4.4};
- d[1] = new double[] {1.1, 2.2, 3.3, 4.4, 5.5};
- Number[][] n = DataUtilities.createNumberArray2D(d);
- assertEquals(2, n.length);
- assertEquals(4, n[0].length);
- assertEquals(5, n[1].length);
- }
- }