@Test public void testIsRegularShouldSuccess() throws Exception { Matrix a = new Matrix( new double[][] { {1, 2, 3}, {3, 2, 1}, {2, 1, 3} }); assertEquals(true, a.isRegular()); }
@Test public void testIsRegularShouldFail() throws Exception { Matrix a = new Matrix(new double[][] {{1, 0, 3}, {3, 0, 1}, {2, 0, 3}}); assertEquals(false, a.isRegular()); }