SourceForge has been redesigned. Learn more.
Close

#51 CPPUNIT_ASSERT_EQUAL* to allow inequality of types

closed-duplicate
nobody
assertion (3)
5
2008-02-20
2006-06-07
Tuomo Latto
No

Changes to TestAssertion.h, and TestAssertion.cpp to
allow the comparison of different types using
CPPUNIT_ASSERT_EQUAL* macros.
It allows one to compare eg. std::strings with less
typing with "CPPUNIT_ASSERT_EQUAL( "expected",
actualString)". Comes handy when using custom equality
operators.
Also added some asserts to TestAssertionTest.cpp to
test it.

Btw, can CPPUNIT_ENABLE_SOURCELINE_DEPRECATED even be
used? It's just that I can't see a matching
assertEquals() anywhere.

Discussion

  • Tuomo Latto

    Tuomo Latto - 2006-06-27

    Logged In: YES
    user_id=1535555

    Scrap this.
    Use patch 1513298 instead.

     
  • Steven Robbins

    Steven Robbins - 2008-02-20

    Logged In: YES
    user_id=130415
    Originator: NO

    Superceeded by patch 1513298.

     
  • Steven Robbins

    Steven Robbins - 2008-02-20
    • status: open --> closed-duplicate
     

Log in to post a comment.