Github user dtmuller commented on a diff in the pull request:

    https://github.com/apache/thrift/pull/1039#discussion_r71131802
  
    --- Diff: compiler/cpp/test/plugin/conversion_test.cc ---
    @@ -269,6 +268,8 @@ void test_const_value(t_const_value* sut) {
     #undef T_CONST_VALUE_CASE
       case t_const_value::CV_MAP:
         BOOST_CHECK_EQUAL(sut->get_map().size(), sut2->get_map().size());
    +    // NOTE This test only works with map with a single entry because we 
can't
    +    // rely on map ordering with pointers as key.
         BOOST_CHECK_EQUAL(sut->get_map().begin()->first->get_type(),
                           sut2->get_map().begin()->first->get_type());
         BOOST_CHECK_EQUAL(sut->get_map().begin()->second->get_type(),
    --- End diff --
    
    Fixed this by extracting to a map of dereferenced types for comparison.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to