From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28497 invoked by alias); 3 Jul 2007 14:47:58 -0000 Received: (qmail 28487 invoked by uid 22791); 3 Jul 2007 14:47:57 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 03 Jul 2007 14:47:53 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l63Eloxe021052 for ; Tue, 3 Jul 2007 10:47:50 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l63Eloh7031750 for ; Tue, 3 Jul 2007 10:47:50 -0400 Received: from [172.16.14.161] (toothpaste.toronto.redhat.com [172.16.14.161]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l63Eloju016591 for ; Tue, 3 Jul 2007 10:47:50 -0400 Subject: FYI: Added new test From: Tania Bento To: mauve-patches Content-Type: multipart/mixed; boundary="=-HfcSLU/ZMHUkvkMRDyW4" Date: Tue, 03 Jul 2007 14:47:00 -0000 Message-Id: <1183474068.18659.21.camel@toothpaste.toronto.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 (2.10.1-4.fc7) X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2007/txt/msg00039.txt.bz2 --=-HfcSLU/ZMHUkvkMRDyW4 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 332 This patch adds a new test to gnu.testlet.java.lang.Integer.parseInt. It checks that a NumberFormatException is thrown if only "+" is passed as an argument. I've already committed this patch. 2007-07-03 Tania Bento * gnu/testlet/java/lang/Integer/parseInt.java: (test): Added new test. --=-HfcSLU/ZMHUkvkMRDyW4 Content-Disposition: attachment; filename=patch.diff Content-Type: text/x-patch; name=patch.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 722 Index: gnu/testlet/java/lang/Integer/parseInt.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/Integer/parseInt.java,v retrieving revision 1.2 diff -u -r1.2 parseInt.java --- gnu/testlet/java/lang/Integer/parseInt.java 29 Jun 2007 19:39:44 -0000 1.2 +++ gnu/testlet/java/lang/Integer/parseInt.java 3 Jul 2007 14:27:38 -0000 @@ -95,6 +95,16 @@ harness.check(true); } + try + { + i = Integer.parseInt("+"); + harness.fail("Single '+' must throw NumberFormatException"); + } + catch (NumberFormatException nfe) + { + harness.check(true); + } + // In JDK1.7, '+' is considered a valid character. try { --=-HfcSLU/ZMHUkvkMRDyW4--