You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/05/12 12:27:51 UTC
jena git commit: JENA-1175: Fix test_exprSprintf_05 to not ignore its
first argument
Repository: jena
Updated Branches:
refs/heads/master 5e8d7fac6 -> 994d6bf0a
JENA-1175: Fix test_exprSprintf_05 to not ignore its first argument
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/994d6bf0
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/994d6bf0
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/994d6bf0
Branch: refs/heads/master
Commit: 994d6bf0a3f41eb59795fbc30642c2531accac58
Parents: 5e8d7fa
Author: Andy Seaborne <an...@apache.org>
Authored: Thu May 12 13:27:38 2016 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Thu May 12 13:27:38 2016 +0100
----------------------------------------------------------------------
.../src/test/java/org/apache/jena/sparql/expr/TestFunctions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/994d6bf0/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java b/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java
index 8aa63a2..95b2cd3 100644
--- a/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java
+++ b/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestFunctions.java
@@ -82,7 +82,7 @@ public class TestFunctions
// }
private static void test_exprSprintf_05(String nodeStr, String... possible) {
- String exprStr = "afn:sprintf('%1$tm %1$te,%1$tY', "+NodeValue.makeDateTime("2005-10-14T13:09:43Z").toString()+")" ;
+ String exprStr = "afn:sprintf('%1$tm %1$te,%1$tY', "+NodeValue.makeDateTime(nodeStr).toString()+")" ;
Expr expr = ExprUtils.parse(exprStr) ;
NodeValue r = expr.eval(null, FunctionEnvBase.createTest()) ;
assertTrue(r.isString()) ;