This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
Patch: FYI: PR 28658 test
- From: Tom Tromey <tromey at redhat dot com>
- To: Mauve Patch List <mauve-patches at sources dot redhat dot com>
- Date: 09 Aug 2006 12:55:06 -0600
- Subject: Patch: FYI: PR 28658 test
- Reply-to: tromey at redhat dot com
I'm checking this in.
This is the test case from PR 28658.
Tom
2006-08-09 Tom Tromey <tromey@redhat.com>
PR classpath/28658:
* gnu/testlet/java/text/SimpleDateFormat/regress.java (test): Added
regression test.
Index: gnu/testlet/java/text/SimpleDateFormat/regress.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/text/SimpleDateFormat/regress.java,v
retrieving revision 1.11
diff -u -r1.11 regress.java
--- gnu/testlet/java/text/SimpleDateFormat/regress.java 19 Apr 2006 17:41:58 -0000 1.11
+++ gnu/testlet/java/text/SimpleDateFormat/regress.java 9 Aug 2006 18:16:31 -0000
@@ -118,5 +118,19 @@
sdf.setTimeZone(TimeZone.getTimeZone("America/New_York"));
someTime = 1098968427000L; // 04-10-28 14:00:27 GMT
harness.check(sdf.format(new Date(someTime)), "04-10-28 09:00:27 -0400");
+
+ harness.checkPoint("PR 28658");
+ sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", Locale.US);
+ try
+ {
+ Date d1 = sdf.parse("Sun Nov 6 08:49:37 1994");
+ Date d2 = sdf.parse("Sun Nov 6 08:49:37 1994");
+ harness.check(d1, d2);
+ }
+ catch (ParseException _)
+ {
+ harness.debug(_);
+ harness.check(false);
+ }
}
}