FYI: Check value from parsing +x is x
Andrew John Hughes
gnu_andrew@member.fsf.org
Mon May 12 21:35:00 GMT 2008
This extends the check against parsing +x so that not only
does +x pass, but it also must return x as the value of i.
Classpath currently fails the second test. Only OpenJDK
(JDK7) implements +x parsing at present.
ChangeLog:
2008-05-12 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/testlet/java/lang/Integer/parseInt.java:
Check that parsing +x returns x.
--
Andrew :)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
-------------- next part --------------
Index: gnu/testlet/java/lang/Integer/parseInt.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/Integer/parseInt.java,v
retrieving revision 1.3
diff -u -r1.3 parseInt.java
--- gnu/testlet/java/lang/Integer/parseInt.java 3 Jul 2007 14:30:04 -0000 1.3
+++ gnu/testlet/java/lang/Integer/parseInt.java 12 May 2008 21:32:45 -0000
@@ -110,6 +110,7 @@
{
i = Integer.parseInt("+10");
harness.check(true);
+ harness.check(i, 10);
}
catch (NumberFormatException nfe)
{
More information about the Mauve-patches
mailing list