abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James M Snell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (ABDERA-7) IRI tests failing on OS X
Date Mon, 02 Oct 2006 18:59:20 GMT
     [ http://issues.apache.org/jira/browse/ABDERA-7?page=all ]

James M Snell resolved ABDERA-7.
--------------------------------

    Resolution: Fixed

Issue resolved.  The problem had to do with the fact that the default charset encoding can
vary jvm to jvm and platform to platform.  By forcing the url encoding to always use UTF-8
as the default, and by providing a means of constructing IRI's from URI's with an explicit
charset param, the problem is resolved.

Charset encodings are evil..... EVIL I TELLS YA!

> IRI tests failing on OS X
> -------------------------
>
>                 Key: ABDERA-7
>                 URL: http://issues.apache.org/jira/browse/ABDERA-7
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Mac OS X 10.4.8, Intel
>            Reporter: Ugo Cei
>
> Here are some of the outputs from running "mvn test" in rev. 452068
> -------------------------------------------------------------------------------
> Test set: org.apache.abdera.test.iri.TestNFKC
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.449 sec <<<
FA
> ILURE!
> testNFKC(org.apache.abdera.test.iri.TestNFKC)  Time elapsed: 1.369 sec  <<<
FAIL
> URE!
> junit.framework.ComparisonFailure: expected:<[<C2>?]> but was:<[<CE><BC>]>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestNFKC.testNFKC(TestNFKC.java:29)
> ===============================================
> -------------------------------------------------------------------------------
> Test set: org.apache.abdera.test.iri.TestIRI
> -------------------------------------------------------------------------------
> Tests run: 13, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.172 sec <<<
F
> AILURE!
> testSimple(org.apache.abdera.test.iri.TestIRI)  Time elapsed: 0.005 sec  <<<
FAI
> LURE!
> junit.framework.ComparisonFailure: expected:<...k?uri=http%3A%2F%2Fr[<8E>sum<8E>
> ].example.org> but was:<...k?uri=http%3A%2F%2Fr[<C3><A9>sum<C3><A9>].example.org
> >
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestIRI.testSimple(TestIRI.java:32)
> testNotSoSimple(org.apache.abdera.test.iri.TestIRI)  Time elapsed: 0.003 sec  <<
> < FAILURE!
> junit.framework.ComparisonFailure: expected:<http://example.com/%[3F%3F%3F]> but
>  was:<http://example.com/%[F0%90%8C%80%F0%90%8C%81%F0%90%8C%82]>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestIRI.testNotSoSimple(TestIRI.java:44)
> testURItoIRI(org.apache.abdera.test.iri.TestIRI)  Time elapsed: 0.019 sec  <<<
F
> AILURE!
> junit.framework.ComparisonFailure: expected:<...://www.example.org/D[<C3><BC>]rs
> t> but was:<...://www.example.org/D[<9F>]rst>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestIRI.testURItoIRI(TestIRI.java:50)
> testURItoIRI2(org.apache.abdera.test.iri.TestIRI)  Time elapsed: 0.016 sec  <<<

> FAILURE!
> junit.framework.ComparisonFailure: expected:<...://www.example.org/D[<FC>]rst>
b
> ut was:<...://www.example.org/D[%FC]rst>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestIRI.testURItoIRI2(TestIRI.java:56)
> testURItoIRI3(org.apache.abdera.test.iri.TestIRI)  Time elapsed: 0.016 sec  <<<

> FAILURE!
> junit.framework.ComparisonFailure: expected:<...99zt52a.example.org/[<E2><80>
> <AE>]> but was:<...99zt52a.example.org/[%E2%80%AE]>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestIRI.testURItoIRI3(TestIRI.java:62)
> testIRItoURI(org.apache.abdera.test.iri.TestIRI)  Time elapsed: 0.003 sec  <<<
F
> AILURE!
> junit.framework.ComparisonFailure: expected:<http://[??.example.org/%E2%80%9A%C3
> %84%C3%86]> but was:<http://[xn--99zt52a.example.org/%E2%80%AE]>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestIRI.testIRItoURI(TestIRI.java:68)
> testMixedEncodings(org.apache.abdera.test.iri.TestIRI)  Time elapsed: 0.004 sec 
>  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<...://www.example.org/r[<E9>sum<E9>
> .xml#r<C3><A9>sum<C3><A9>]> but was:<...://www.example.org/r[%E9sum%E9.xml#r<8E>
> sum<8E>]>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestIRI.testMixedEncodings(TestIRI.java:12
> 2)
> ===============================================
> -------------------------------------------------------------------------------
> Test set: org.apache.abdera.test.iri.TestNameprep
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec <<<
FA
> ILURE!
> testNameprep(org.apache.abdera.test.iri.TestNameprep)  Time elapsed: 0.012 sec  
> <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<foo[barbaz]> but was:<foo[<C2><AD>
> <9B><8F><E1><A0><9F><E1><A0><8B>bar<E2><8A><8B><E2><8C><A0>baz<99><B8><8A><99>
> <B8><88><99><B8><8F><99>a<BF>]>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at org.apache.abdera.test.iri.TestNameprep.testNameprep(TestNameprep.jav
> a:154)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message