Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 1339 invoked from network); 6 Sep 2009 21:26:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Sep 2009 21:26:46 -0000 Received: (qmail 45595 invoked by uid 500); 6 Sep 2009 21:26:45 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 45510 invoked by uid 500); 6 Sep 2009 21:26:45 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 45482 invoked by uid 99); 6 Sep 2009 21:26:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 21:26:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 21:26:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2963823888C5; Sun, 6 Sep 2009 21:26:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090906212621.2963823888C5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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()); }