[ 
https://issues.apache.org/jira/browse/JENA-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15276360#comment-15276360
 ] 

Andy Seaborne commented on JENA-1175:
-------------------------------------

I'm trying to find a stable way to test this.

The commit 3ac8891 has 3 tests with dateTimes for  -11, Z, and +11 (tweaking 
the hour to make things safer for timezone extremes of -14 to +14).

It checks for all possible dates for the dateTime based on locale, which is (I 
think) 2 for -11 and +11, and 3 for Z.



> TestFunctions.exprSprintf_05 is timezone senstive.
> --------------------------------------------------
>
>                 Key: JENA-1175
>                 URL: https://issues.apache.org/jira/browse/JENA-1175
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 3.1.0
>            Reporter: Andy Seaborne
>
> {noformat}
> Running org.apache.jena.sparql.expr.TS_ExprTests 
> run: 1255, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec <<< 
> FAILURE!
> in org.apache.jena.sparql.expr.TS_Expr 
> exprSprintf_05(org.apache.jena.sparql.expr.TestFunctions)  Time elapsed: 
> 0.006 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<"10 14,2005"> but was:<"10 15,2005">
>    at org.junit.Assert.fail(Assert.java:88)
>    at org.junit.Assert.failNotEquals(Assert.java:834)
>    at org.junit.Assert.assertEquals(Assert.java:118)
>    at org.junit.Assert.assertEquals(Assert.java:144)
>    at org.apache.jena.sparql.expr.TestFunctions.test(TestFunctions.java:270)
>    at 
> org.apache.jena.sparql.expr.TestFunctions.exprSprintf_05(TestFunctions.java:82)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to