* Patch: FYI: PR 28658 test
@ 2006-08-09 19:00 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2006-08-09 19:00 UTC (permalink / raw)
To: Mauve Patch List
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);
+ }
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-09 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-09 19:00 Patch: FYI: PR 28658 test Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).