pnoltes commented on code in PR #743:
URL: https://github.com/apache/celix/pull/743#discussion_r1608955095


##########
libs/utils/gtest/src/PropertiesEncodingTestSuite.cc:
##########
@@ -1103,4 +1103,29 @@ TEST_F(PropertiesSerializationTestSuite, 
JsonErrorToCelixStatusTest) {
     EXPECT_EQ(CELIX_ILLEGAL_ARGUMENT, 
celix_properties_jsonErrorToStatus(json_error_numeric_overflow));
     EXPECT_EQ(CELIX_ILLEGAL_ARGUMENT, 
celix_properties_jsonErrorToStatus(json_error_item_not_found));
     EXPECT_EQ(CELIX_ILLEGAL_ARGUMENT, 
celix_properties_jsonErrorToStatus(json_error_index_out_of_range));
-}
\ No newline at end of file
+}
+
+TEST_F(PropertiesSerializationTestSuite, KeyCollision) {

Review Comment:
   Good to see that you found a way to test this corner case.
   I though I tried the same, but was struggling to find a way that I could 
determine the order for 2 hashmap entries. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to