commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r811897 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/RealVectorFormatAbstractTest.java
Date Sun, 06 Sep 2009 21:26:21 GMT
Author: sebb
Date: Sun Sep  6 21:26:18 2009
New Revision: 811897

URL: http://svn.apache.org/viewvc?rev=811897&view=rev
Log:
Clarify parse test messages

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/RealVectorFormatAbstractTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/RealVectorFormatAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/RealVectorFormatAbstractTest.java?rev=811897&r1=811896&r2=811897&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/RealVectorFormatAbstractTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/RealVectorFormatAbstractTest.java
Sun Sep  6 21:26:18 2009
@@ -366,19 +366,22 @@
 
     public void testForgottenPrefix() {
         ParsePosition pos = new ParsePosition(0);
-        assertNull(new RealVectorFormat().parse("1; 1; 1}", pos));
+        final String source = "1; 1; 1}";
+        assertNull("Should not parse <"+source+">",new RealVectorFormat().parse(source,
pos));
         assertEquals(0, pos.getErrorIndex());
     }
 
     public void testForgottenSeparator() {
         ParsePosition pos = new ParsePosition(0);
-        assertNull(new RealVectorFormat().parse("{1; 1 1}", pos));
+        final String source = "{1; 1 1}";
+        assertNull("Should not parse <"+source+">",new RealVectorFormat().parse(source,
pos));
         assertEquals(6, pos.getErrorIndex());
     }
 
     public void testForgottenSuffix() {
         ParsePosition pos = new ParsePosition(0);
-        assertNull(new RealVectorFormat().parse("{1; 1; 1 ", pos));
+        final String source = "{1; 1; 1 ";
+        assertNull("Should not parse <"+source+">",new RealVectorFormat().parse(source,
pos));
         assertEquals(8, pos.getErrorIndex());
     }
 



Mime
View raw message