From 92faecca3031a6c48e1b049ffb6700ecf3b606e2 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Tue, 10 Aug 2021 17:42:25 +0200 Subject: [PATCH] DRAFT: Add more debugging output --- include/caosdb/entity.h | 2 +- test/test_ccaosdb.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/caosdb/entity.h b/include/caosdb/entity.h index c7d80cb..0102ac9 100644 --- a/include/caosdb/entity.h +++ b/include/caosdb/entity.h @@ -338,7 +338,7 @@ public: /** * Return the current size of the properties container. * - * This is also the number of properties the owningn entity currently has. + * This is also the number of properties the owning entity currently has. */ [[nodiscard]] inline auto Size() const -> int { return wrapped->size(); } /** diff --git a/test/test_ccaosdb.cpp b/test/test_ccaosdb.cpp index 92c3bc0..6d1a33c 100644 --- a/test/test_ccaosdb.cpp +++ b/test/test_ccaosdb.cpp @@ -280,10 +280,13 @@ TEST_F(test_ccaosdb, test_entity_with_parent_and_property) { std::cout << "Comparing ..." << std::endl; caosdb_entity_property output_property; return_code = caosdb_entity_entity_get_property(&entity, &output_property, 0); + std::cout << "Got output property." << std::endl; EXPECT_EQ(return_code, 0); caosdb_entity_property_get_id(&input_property, in); + std::cout << "Got input id." << std::endl; caosdb_entity_property_get_id(&output_property, out); + std::cout << "Got output id." << std::endl; EXPECT_EQ(strcmp(in, out), 0); caosdb_entity_property_get_name(&input_property, in); @@ -298,8 +301,10 @@ TEST_F(test_ccaosdb, test_entity_with_parent_and_property) { caosdb_entity_property_get_value(&output_property, out); EXPECT_EQ(strcmp(in, out), 0); + std::cout << "Comparing parent..." << std::endl; caosdb_entity_parent output_parent; return_code = caosdb_entity_entity_get_parent(&entity, &output_parent, 0); + std::cout << "Got output parent." << std::endl; EXPECT_EQ(return_code, 0); caosdb_entity_parent_get_id(&input_parent, in); -- GitLab