This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
FYI: Test Fix
- From: Tania Bento <tbento at redhat dot com>
- To: mauve-patches <mauve-patches at sources dot redhat dot com>
- Date: Fri, 29 Jun 2007 15:38:42 -0400
- Subject: FYI: Test Fix
This patch fixes an incorrect test in
gnu.testlet.java.lang.Integer.parseInt.
2007-06-29 Tania Bento <tbento@redhat.com>
* gnu/testlet/java/lang/Integer/parsetInt.java:
(test): Fixed incorrect test.
Index: gnu/testlet/java/lang/Integer/parseInt.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/Integer/parseInt.java,v
retrieving revision 1.1
diff -u -r1.1 parseInt.java
--- gnu/testlet/java/lang/Integer/parseInt.java 21 Jul 2002 14:48:33 -0000 1.1
+++ gnu/testlet/java/lang/Integer/parseInt.java 29 Jun 2007 19:33:44 -0000
@@ -95,14 +95,15 @@
harness.check(true);
}
+ // In JDK1.7, '+' is considered a valid character.
try
{
i = Integer.parseInt("+10");
- harness.fail("Leading '+' must throw NumberFormatException");
+ harness.check(true);
}
catch (NumberFormatException nfe)
{
- harness.check(true);
+ harness.fail("Leading '+' does not throw NumberFormatException");
}
try