From green@cygnus.com  Sun Jan  9 14:08:00 2000
From: green@cygnus.com (Anthony Green)
Date: Sun, 09 Jan 2000 14:08:00 -0000
Subject: StringTest patches 
Message-ID: <200001092208.OAA09017@hoser.cygnus.com>

I'm committing the following patch to StringTest.java.  We should only
be checking for IndexOutOfBoundsException.
StringIndexOutOfBoundsException would probably have been ok.
ArrayIndexOutOfBoundsException was probably wrong.

2000-01-09  Anthony Green  <green@cygnus.com>

	    * gnu/testlet/java/lang/String/StringTest.java (test_getChars,
	    test_getBytes): Don't check for StringIndexOutOfBoundsException or
	    ArrayIndexOutOfBoundsException.  The spec only mentions
	    IndexOutOfBoundsException.

Index: gnu/testlet/java/lang/String/StringTest.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/String/StringTest.java,v
retrieving revision 1.3
diff -u -r1.3 StringTest.java
--- StringTest.java	1999/07/07 09:21:16	1.3
+++ StringTest.java	2000/01/09 22:05:48
@@ -238,35 +238,27 @@
 		try {
 			str.getChars(-1 , 3 , dst , 1 );
 			harness.fail("Error : test_getChars failed - 2");
-		}catch ( StringIndexOutOfBoundsException e ){}
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getChars(4 , 3 , dst , 1 );
 			harness.fail("Error : test_getChars failed - 3");
-		}catch ( StringIndexOutOfBoundsException e ){}
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getChars(1 , 15 , dst , 1 );
 			harness.fail("Error : test_getChars failed - 4");
-		}catch ( StringIndexOutOfBoundsException e ){}
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getChars(1 , 5 , dst , -1 );
 			harness.fail("Error : test_getChars failed - 5");
-		}catch ( ArrayIndexOutOfBoundsException e ){}
-		catch ( IndexOutOfBoundsException e ){
-			harness.fail("Error : test_getChars failed - 5a"+
-                           " should throw ArrayIndexOutOfBounds exception");
-                }
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getChars(1 , 10 , dst , 1 );
 			harness.fail("Error : test_getChars failed - 6");
-		}catch ( ArrayIndexOutOfBoundsException e ){}
-		catch ( IndexOutOfBoundsException e ){
-			harness.fail("Error : test_getChars failed - 6a"+
-                           " should throw ArrayIndexOutOfBounds exception");
-                }
+		}catch ( IndexOutOfBoundsException e ){}
 
 		str.getChars(0,5,dst, 0 );
 		harness.check(!( dst[0] != 'a' || dst[1] != 'b' || dst[2] != 'c' ||
@@ -301,35 +293,27 @@
 		try {
 			str.getBytes(-1 , 3 , dst , 1 );
 			harness.fail("Error : test_getBytes failed - 2");
-		}catch ( StringIndexOutOfBoundsException e ){}
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getBytes(4 , 3 , dst , 1 );
 			harness.fail("Error : test_getBytes failed - 3");
-		}catch ( StringIndexOutOfBoundsException e ){}
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getBytes(1 , 15 , dst , 1 );
 			harness.fail("Error : test_getBytes failed - 4");
-		}catch ( StringIndexOutOfBoundsException e ){}
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getBytes(1 , 5 , dst , -1 );
 			harness.fail("Error : test_getBytes failed - 5");
-		}catch ( ArrayIndexOutOfBoundsException e ){}
-		catch ( IndexOutOfBoundsException e ){
-			harness.fail("Error : test_getBytes failed - 5a"+
-                           " should throw ArrayIndexOutOfBounds exception");
-                }
+		}catch ( IndexOutOfBoundsException e ){}
 
 		try {
 			str.getBytes(1 , 10 , dst , 1 );
 			harness.fail("Error : test_getBytes failed - 6");
-		}catch ( ArrayIndexOutOfBoundsException e ){}
-		catch ( IndexOutOfBoundsException e ){
-			harness.fail("Error : test_getBytes failed - 5a"+
-                           " should throw ArrayIndexOutOfBounds exception");
-                }
+		}catch ( IndexOutOfBoundsException e ){}
 
 		str.getBytes(0,5,dst, 0 );
 		harness.check(!( dst[0] != 'a' || dst[1] != 'b' || dst[2] != 'c' ||

-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California

From green@cygnus.com  Fri Mar  3 18:18:00 2000
From: green@cygnus.com (Anthony Green)
Date: Fri, 03 Mar 2000 18:18:00 -0000
Subject: URL test patch
Message-ID: <200003040218.SAA03950@hoser.cygnus.com>

I'm committing the following patch for some test code that depends on
the IP address of sourceware.cygnus.com and the version of Apache that
it runs.

2000-03-02  Anthony Green  <green@cygnus.com>

	* gnu/testlet/java/net/URL/URLTest.java (test_toString):
	sourceware.cygnus.com has a new IP address.
	(test_openConnection): Sourceware is running a newer version of
	Apache.


Index: gnu/testlet/java/net/URL/URLTest.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/URL/URLTest.java,v
retrieving revision 1.2
diff -u -p -p -u -r1.2 URLTest.java
--- URLTest.java	1999/06/11 01:17:03	1.2
+++ URLTest.java	2000/03/04 02:17:32
@@ -128,7 +128,7 @@ public class URLTest implements Testlet
 
 			URLConnection conn = url.openConnection();
 
-			harness.check (conn.getHeaderField(2), "Apache/1.3.4 (Unix)");
+			harness.check (conn.getHeaderField(2), "Apache/1.3.9 (Unix)");
 			String conttype	= conn.getContentType();
 			harness.check (conttype, "text/html");
 
@@ -199,12 +199,12 @@ public class URLTest implements Testlet
 			URL url1 = new URL ( " http://sourceware.cygnus.com:80/mauve/testarea/index.html ");
 			String str1 = url1.toString();
 
-			URL url2 = new URL ( " http://205.180.83.80/ ");
+			URL url2 = new URL ( " http://205.180.83.71/ ");
 			String str2 = url2.toString();
 
 			harness.check (str, " http://sourceware.cygnus.com/index.html ");
 			harness.check (str1, " http://sourceware.cygnus.com:80/mauve/testarea/index.html ");
-			harness.check (str2, " http://205.180.83.80/ ");
+			harness.check (str2, " http://205.180.83.71/ ");
 
 			URL url3 = new URL( "ftp" , "sourceware.cygnus.com" , 21 , "/dir/dir1.lst");
 			String str3 = url3.toString( );

-- 
Anthony Green                                                        Red Hat
                                                       Sunnyvale, California

From green@cygnus.com  Sun Mar  5 00:43:00 2000
From: green@cygnus.com (Anthony Green)
Date: Sun, 05 Mar 2000 00:43:00 -0000
Subject: Patch: simple java.lang.Math.sin test
Message-ID: <200003050843.AAA04898@hoser.cygnus.com>

I'm comitting the following simple test case.


2000-03-05  Anthony Green  <green@redhat.com>

	* gnu/testlet/java/lang/Math/sin.java: New file.


Index: gnu/testlet/java/lang/Math/sin.java
===================================================================
RCS file: sin.java
diff -N sin.java
0a1,33
> // Tags: JDK1.0
> 
> /* Copyright (C) 2000 Red Hat
> 
>    This file is part of Mauve.
> 
>    Mauve is free software; you can redistribute it and/or modify
>    it under the terms of the GNU General Public License as published by
>    the Free Software Foundation; either version 2, or (at your option)
>    any later version.
> 
>    Mauve is distributed in the hope that it will be useful,
>    but WITHOUT ANY WARRANTY; without even the implied warranty of
>    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>    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.  */
> 
> package gnu.testlet.java.lang.Math;
> import gnu.testlet.Testlet;
> import gnu.testlet.TestHarness;
> 
> public class cos implements Testlet
> {
>   public void test (TestHarness harness)
>   {
>     harness.check (new Double (Math.sin (1e50)).toString (), 
> 		   "-0.4805001434937588");
>   }
> }

-- 
Anthony Green                                                        Red Hat
                                                       Sunnyvale, California

From green@cygnus.com  Sun Mar  5 00:49:00 2000
From: green@cygnus.com (Anthony Green)
Date: Sun, 05 Mar 2000 00:49:00 -0000
Subject: Patch: simple java.lang.Math.sin test
References: <200003050843.AAA04898@hoser.cygnus.com>
Message-ID: <200003050848.AAA04903@hoser.cygnus.com>

I wrote:
> public class cos implements Testlet

This was obviously supposed to be:

public class sin implements Testlet

I've fixed it.  

-- 
Anthony Green                                                        Red Hat
                                                       Sunnyvale, California


