diff --git a/include/caosdb/entity.h b/include/caosdb/entity.h index c7d80cbf686042e1d75b2dfc9fd6dbc852353545..0102ac948391f11e762889dab4ef6103b6a26326 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 92c3bc096e4f8752e95514783ae7d4acdb26b38f..6d1a33c7f0956a154669b3d7c4d0d5848371aee8 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);