You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by cl...@apache.org on 2015/05/23 08:58:15 UTC

[05/25] jena git commit: added comments to contract test added additional string type tests.

added comments to contract test
added additional string type tests.


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/8018ea47
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/8018ea47
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/8018ea47

Branch: refs/heads/master
Commit: 8018ea479e8145a29ac81c6bcf72b7c8da2ca1f1
Parents: 4d1b0d9
Author: Claude Warren <cl...@apache.org>
Authored: Sun Apr 26 21:16:14 2015 +0100
Committer: Claude Warren <cl...@apache.org>
Committed: Sun Apr 26 21:16:14 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/jena/graph/GraphContractTest.java     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/8018ea47/jena-core/src/test/java/org/apache/jena/graph/GraphContractTest.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/graph/GraphContractTest.java b/jena-core/src/test/java/org/apache/jena/graph/GraphContractTest.java
index cf79da5..a989bae 100644
--- a/jena-core/src/test/java/org/apache/jena/graph/GraphContractTest.java
+++ b/jena-core/src/test/java/org/apache/jena/graph/GraphContractTest.java
@@ -1486,12 +1486,14 @@ public class GraphContractTest<T extends Graph> extends
 				"'simple'xsd:string", true);
 		testLiteralTypingBasedFind("a P 'simple'", 1, "'simple'xsd:string",
 				"'simple'", true);
+		// ensure that adding identical strings one with type yields single result
+		// and that querying with or without type works
 		testLiteralTypingBasedFind("a P 'simple'xsd:string", 1,
 				"'simple'xsd:string", "'simple'xsd:string", false);
-//		testLiteralTypingBasedFind("a P 'simple'; a P 'simple'xsd:string", 2,
-//				"'simple'", "'simple' 'simple'xsd:string", true);
-//		testLiteralTypingBasedFind("a P 'simple'; a P 'simple'xsd:string", 2,
-//				"'simple'xsd:string", "'simple' 'simple'xsd:string", true);
+		testLiteralTypingBasedFind("a P 'simple'; a P 'simple'xsd:string", 1,
+				"'simple'", "'simple'xsd:string", true);
+		testLiteralTypingBasedFind("a P 'simple'; a P 'simple'xsd:string", 1,
+				"'simple'xsd:string", "'simple'", true);
 		testLiteralTypingBasedFind("a P 'simple'; a P 'simple'xsd:string", 1,
 				"'simple'", "'simple'", true);
 		testLiteralTypingBasedFind("a P 'simple'; a P 'simple'xsd:string", 1,