commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject cvs commit: jakarta-commons/math/src/test/org/apache/commons/math/linear RealMatrixImplTest.java
Date Sun, 10 Oct 2004 18:01:16 GMT
psteitz     2004/10/10 11:01:16

  Modified:    math/src/test/org/apache/commons/math/linear
                        RealMatrixImplTest.java
  Log:
  Added test for toString.
  
  Revision  Changes    Path
  1.19      +11 -1     jakarta-commons/math/src/test/org/apache/commons/math/linear/RealMatrixImplTest.java
  
  Index: RealMatrixImplTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/test/org/apache/commons/math/linear/RealMatrixImplTest.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- RealMatrixImplTest.java	10 Oct 2004 05:23:16 -0000	1.18
  +++ RealMatrixImplTest.java	10 Oct 2004 18:01:16 -0000	1.19
  @@ -619,6 +619,16 @@
           assertEquals(m, m1);
           assertFalse(m.equals(null));
           assertFalse(m.equals(mt));
  +        assertFalse(m.equals(new RealMatrixImpl(bigSingular))); 
  +    }
  +    
  +    public void testToString() {
  +        RealMatrixImpl m = new RealMatrixImpl(testData);
  +        assertEquals("RealMatrixImpl{{1.0,2.0,3.0},{2.0,5.0,3.0},{1.0,0.0,8.0}}",
  +                m.toString());
  +        m = new RealMatrixImpl();
  +        assertEquals("RealMatrixImpl{}",
  +                m.toString());
       }
       
       //--------------- -----------------Protected methods
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message