From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19898 invoked by alias); 27 Jun 2006 16:28:03 -0000 Received: (qmail 19878 invoked by uid 22791); 27 Jun 2006 16:28:02 -0000 X-Spam-Check-By: sourceware.org Received: from outmail128141.authsmtp.com (HELO outmail128141.authsmtp.com) (62.13.128.141) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Jun 2006 16:27:59 +0000 Received: from [192.168.1.32] (host217-37-65-246.in-addr.btopenworld.com [217.37.65.246]) (authenticated bits=0) by squirrel.dmpriest.net.uk (8.13.6/8.13.6/Kp) with ESMTP id k5RGRte2025494 for ; Tue, 27 Jun 2006 17:27:55 +0100 (BST) Message-ID: <44A15C8B.3060604@object-refinery.com> Date: Tue, 27 Jun 2006 16:28:00 -0000 From: David Gilbert User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) MIME-Version: 1.0 To: mauve-patches Subject: FYI: Point.setLocation() additional checks Content-Type: multipart/mixed; boundary="------------050408000305000108060102" X-Server-Quench: e385bc7c-05f9-11db-b770-001185d377ca X-AuthRoute: OCdyYgsUB1ZZRRob BmULDStKRB85DhpG AxIIMU5ALVQIUwlL IwBRKV9FNVQBW1wc QzdPCAwBEy0yBiY3 OF8Sc0cINhIfGxs5 DxUHQFVNbkA2Hh4B BhgOUx54dQJMfXs+ Z0dlQHNcQkJ/a0R5 RFFWEHIGKzxlChd9 FBVadwFRdApOMBxF Y1IxAXAFZDdUYSl9 R1I9bnVoZDlVbS4K HVlIdQpLGBZWEmVj GBsLCxsePB9NfyIy KQBgMVMAOEEaO1kz Nl1hGBoRPxMTFgxZ GUhJSCRZKlICXEIs X-Authentic-SMTP: 61633132333134.squirrel.dmpriest.net.uk:1.55/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2006/txt/msg00486.txt.bz2 This is a multi-part message in MIME format. --------------050408000305000108060102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 209 This patch (committed) adds a few extra checks: 2006-06-27 David Gilbert * gnu/testlet/java/awt/Point/setLocation.java (test): Added new checks. Regards, Dave --------------050408000305000108060102 Content-Type: text/plain; name="diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff.txt" Content-length: 2067 Index: gnu/testlet/java/awt/Point/setLocation.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/Point/setLocation.java,v retrieving revision 1.1 diff -u -r1.1 setLocation.java --- gnu/testlet/java/awt/Point/setLocation.java 20 Oct 2004 09:11:29 -0000 1.1 +++ gnu/testlet/java/awt/Point/setLocation.java 27 Jun 2006 16:24:04 -0000 @@ -1,6 +1,6 @@ // Tags: JDK1.1 -// Copyright (C) 2004 David Gilbert +// Copyright (C) 2004, 2006, David Gilbert // Mauve is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -13,9 +13,9 @@ // GNU General Public License for more details. // You should have received a copy of the GNU General Public License -// along with Mauve; see the file COPYING. If not, write to -// the Free Software Foundation, 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. */ +// along with Mauve; see the file COPYING. If not, write to the +// Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +// 02110-1301 USA. package gnu.testlet.java.awt.Point; @@ -62,9 +62,30 @@ p.setLocation(1.2, 2.3); harness.check(p.x, 1); harness.check(p.y, 2); + + p.setLocation(1.51, 2.7); + harness.check(p.x, 2); + harness.check(p.y, 3); + + p.setLocation(1.5, 2.5); + harness.check(p.x, 2); + harness.check(p.y, 3); + + p.setLocation(-1.5, -2.5); + harness.check(p.x, -1); + harness.check(p.y, -2); + + p.setLocation(1.499, 2.499); + harness.check(p.x, 1); + harness.check(p.y, 2); + + p.setLocation(Double.NaN, Double.NaN); + harness.check(p.x, 0); + harness.check(p.y, 0); double bigPos = Integer.MAX_VALUE + 10000.0; double bigNeg = Integer.MIN_VALUE - 10000.0; + p.setLocation(bigPos, bigPos); harness.check(p.x, Integer.MAX_VALUE); harness.check(p.y, Integer.MAX_VALUE); --------------050408000305000108060102--