Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6772

[C++] Add operator== for interfaces with an Equals() method

    XMLWordPrintableJSON

Details

    Description

      A common pattern in tests is ASSERT_TRUE(schm->Equals(*other). The addition of overloaded equality operators will allow this o be written ASSERT_EQ(*schm, *other), which is more idiomatic GTEST usage and will allow more informative assertion failure messages.

      Attachments

        Issue Links

          Activity

            People

              benpharkins Ben Harkins
              bkietz Ben Kietzman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h