summaryrefslogtreecommitdiffstats
path: root/document/src/tests/base/documentid_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-08-21 09:14:35 +0200
committerGitHub <noreply@github.com>2019-08-21 09:14:35 +0200
commit991249b70460b61f3b73b53387dbc20357aedaa1 (patch)
tree7862378237365b2d0abbf51965f0620f165db0c9 /document/src/tests/base/documentid_test.cpp
parentcb00b309ed537867e36e97dd2c9801c01d84489b (diff)
Revert "Revert "doc: -> id:""
Diffstat (limited to 'document/src/tests/base/documentid_test.cpp')
-rw-r--r--document/src/tests/base/documentid_test.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/document/src/tests/base/documentid_test.cpp b/document/src/tests/base/documentid_test.cpp
index 9994fa5b60b..741a490210f 100644
--- a/document/src/tests/base/documentid_test.cpp
+++ b/document/src/tests/base/documentid_test.cpp
@@ -42,11 +42,6 @@ void checkType(const string &id, const string &doc_type) {
EXPECT_EQUAL(doc_type, doc_id.getDocType());
}
-TEST("require that doc id can be parsed") {
- const string id = "doc:" + ns + ":" + ns_id;
- checkId(id, IdString::DOC, ns, ns_id);
-}
-
TEST("require that id id can be parsed") {
const string id = "id:" + ns + ":" + type + "::" + ns_id;
checkId(id, IdString::ID, ns, ns_id);
@@ -58,10 +53,6 @@ TEST("require that we allow ':' in namespace specific part") {
string id="id:" + ns + ":" + type + "::" + nss;
checkId(id, IdString::ID, ns, nss);
checkType(id, type);
-
- id="doc:" + ns + ":" + nss;
- checkId(id, IdString::DOC, ns, nss);
-
}
TEST("require that id id can specify location") {
@@ -157,11 +148,6 @@ TEST("require that id strings reports features (hasNumber, hasGroup)") {
EXPECT_FALSE(none.getScheme().hasGroup());
EXPECT_EQUAL("foo", none.getScheme().getNamespaceSpecific());
- none = DocumentId("doc:ns:foo");
- EXPECT_FALSE(none.getScheme().hasNumber());
- EXPECT_FALSE(none.getScheme().hasGroup());
- EXPECT_EQUAL("foo", none.getScheme().getNamespaceSpecific());
-
DocumentId user("id:ns:type:n=42:foo");
EXPECT_TRUE(user.getScheme().hasNumber());
EXPECT_FALSE(user.getScheme().hasGroup());