public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* tests impossible to pass with class library written using only spec?
@ 2004-09-20 16:03 Noa Resare
  2004-09-20 19:22 ` Mark Wielaard
  0 siblings, 1 reply; 2+ messages in thread
From: Noa Resare @ 2004-09-20 16:03 UTC (permalink / raw)
  To: mauve-discuss

I looking around in some java.io mauve failures i found some failing
test code in gnu/testlet/java/io/OutputStreamWriter/jdk11.java reading 

	// Note that for java.io the canonical name as returned by
        // getEncoding() must be the "historical" name. ISO8859_1.
        harness.check(osw2.getEncoding(), "ISO8859_1", 
		"OutputStreamWriter(writer, encoding)");
        osw2.close ();
        osw2 = new OutputStreamWriter(baos2, "latin1");
        harness.check(osw2.getEncoding(), "ISO8859_1", 
		"OutputStreamWriter(writer, encoding) // alias");
        osw2.close ();

Ah, simple I thought. It must be a list in the java class library
specification that tells what the historical names are. Now i know there
is no such list. That leads me to a more general question: is it ok for
mauve to test functionality that there is no way to implement using only
the class library spec (or looking at the code of the of the tests
preformed and just returning what is asked for)?

cheers/noa

-- 
And the lions ate the christians and the christians burned the witches,
and even I am out of explanations -- Ola Salo
gpg fingerprint: F3C4 AC90 B885 FE15 344B  4D05 220B 7662 A190 6F09

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tests impossible to pass with class library written using only spec?
  2004-09-20 16:03 tests impossible to pass with class library written using only spec? Noa Resare
@ 2004-09-20 19:22 ` Mark Wielaard
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2004-09-20 19:22 UTC (permalink / raw)
  To: Noa Resare; +Cc: mauve-discuss

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

Hi,

On Mon, 2004-09-20 at 18:03, Noa Resare wrote:
> Ah, simple I thought. It must be a list in the java class library
> specification that tells what the historical names are. Now i know there
> is no such list.

The Java Class libries Second Edition Volume 1 lists them under the
String constructor description. An online copy can be found at:
http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html
in the column "Canonical Name for java.io and java.lang API"

Cheers,

Mark

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-20 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-20 16:03 tests impossible to pass with class library written using only spec? Noa Resare
2004-09-20 19:22 ` Mark Wielaard

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).