summaryrefslogtreecommitdiffhomepage
path: root/tests/test-connectionregistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-connectionregistry.cpp')
-rw-r--r--tests/test-connectionregistry.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-connectionregistry.cpp b/tests/test-connectionregistry.cpp
index 282f397..dbc2b7e 100644
--- a/tests/test-connectionregistry.cpp
+++ b/tests/test-connectionregistry.cpp
@@ -114,14 +114,17 @@ TEST_F(ConnectionRegistryTest, test_iterators)
EXPECT_THROW(cr.begin(""), std::exception);
EXPECT_THROW(cr.end(""), std::exception);
+ EXPECT_EQ(std::distance(cr.begin(), cr.end()), 0);
cr.addConnection(c);
EXPECT_THROW(cr.begin(""), std::exception);
EXPECT_THROW(cr.end(""), std::exception);
+ EXPECT_EQ(std::distance(cr.begin(), cr.end()), 1);
cr.setId(c, "id1");
EXPECT_EQ(std::distance(cr.begin("id1"), cr.end("id1")), 1);
+ EXPECT_EQ(std::distance(cr.begin(), cr.end()), 1);
}
TEST_F(ConnectionRegistryTest, test_guard)