public virtual void test_toString() { DoubleMatrix test = DoubleMatrix.copyOf(new double[][] { new double[] { 1d, 2d }, new double[] { 3d, 4d }, new double[] { 5d, 6d } }); assertEquals(test.ToString(), "1.0 2.0\n3.0 4.0\n5.0 6.0\n"); }