jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cla...@apache.org
Subject [46/50] [abbrv] jena git commit: added comments to contract test added additional string type tests.
Date Sun, 10 May 2015 13:04:15 GMT
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/d12bd572
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/d12bd572
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/d12bd572

Branch: refs/heads/add-contract-tests
Commit: d12bd572bef6320eb193c946bafafa47a0e489ab
Parents: b293ee8
Author: Claude Warren <claude@apache.org>
Authored: Sun Apr 26 21:16:14 2015 +0100
Committer: Claude Warren <claude@apache.org>
Committed: Sat May 9 15:27:40 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/d12bd572/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,


Mime
View raw message