Commit Graph

31 Commits (93f463ddbf8e990e6dccc622fcb8ecb67f21549a)

Author SHA1 Message Date
Joel Truher f8d9da1b8e actually fix CHECK_EQUAL 2024-12-09 06:57:35 -08:00
Joel Truher 947f5b172d fix CHECK_EQUAL 2024-12-07 20:21:46 -08:00
Varun Agrawal e5bf78e688 remove extra semicolons 2023-03-10 15:36:46 -05:00
Frank Dellaert a8eb98acea Fixed warnings that arise from stricter compiler flags 2023-02-11 12:32:50 -08:00
Varun Agrawal 775d2e877e update CppUnitLite to not rely on boost 2023-02-06 10:48:10 -05:00
Frank Dellaert 08e63aee12 Replace boost lexical casts in CppUnitLite 2023-02-05 23:09:52 -08:00
Jose Luis Blanco Claraco 0198c648e3
Fix all new gcc warnings/errors: make explicit virtual/override methods.
Rules are:
- use "virtual" in base classes only.
- use "override" in all derived classes.
2020-07-26 11:20:42 +02:00
Duy-Nguyen Ta 1cdc228d6a remove trailing spaces 2019-02-11 10:58:34 -05:00
Duy-Nguyen Ta 09ffc73b6e convenient macro declaring friend for unittest classes to test private methods 2015-05-15 08:44:15 -04:00
thduynguyen 0dcb3e209d add macro TEST_DISABLED for disabling tests without commenting them out 2014-09-13 01:29:25 -04:00
Alex Cunningham c9c2025d52 Swiched from isnan() check to isfinite() check for DOUBLES_EQUAL - also handles infinite case 2013-08-02 19:04:52 +00:00
Alex Cunningham 3545b114ab Altered [CHECK|EXPECT]_DOUBLES_EQUAL such that nan values automatically cause the test to fail. The previous approach would always return pass if one of the compared values is nan, resulting in tests passing when they shouldn't. If you have a test where you want to check that the value is nan, use EXPECT(isnan(x));, where x is the value you want to test. 2013-08-02 15:21:36 +00:00
Richard Roberts 5d86be270e Swapped group name and test name in CppUnitLite to match the convention we use in unit tests 2013-06-20 16:05:27 +00:00
Richard Roberts b3282577fb Revert "Swapped group name and test name in CppUnitLite to match the convention we use in unit tests"
This reverts commit c186908e755d034cc821376fd78c7118c9ccf48a.
2013-06-04 14:07:44 +00:00
Richard Roberts ac50d39a97 Swapped group name and test name in CppUnitLite to match the convention we use in unit tests 2013-06-04 13:37:13 +00:00
Richard Roberts 96b20487a9 Reverting - Don't trap exceptions in unit tests when in debug mode (reverse-merged from commit 51a7c8e209bafd889982f21e0e40a034afdb36d6) 2012-12-06 20:08:52 +00:00
Richard Roberts 9732094f41 Don't trap exceptions in unit tests when in debug mode 2012-12-03 19:04:31 +00:00
Chris Beall 4297d24c96 changed tabs to spaces for consistent indentation in all of GTSAM 2012-10-02 14:40:07 +00:00
Alex Cunningham 8fa77de2a0 Removed cpp file for Failure, small cleanups 2012-07-18 15:43:55 +00:00
Alex Cunningham 6266a2c56d Removed SimpleString from CppUnitLite - now just uses std::string and boost::lexical_cast 2012-07-18 15:43:54 +00:00
Richard Roberts f8b559772f Fixed unused variable warning in CppUnitLite 2012-06-30 19:18:27 +00:00
Alex Cunningham 054a534f1c Added virtual constructor to TEST_UNSAFE to pacify warnings 2011-09-22 15:12:34 +00:00
Frank Dellaert fd20d3b865 added virtual destructor to avoid warnings 2011-09-03 15:36:44 +00:00
Alex Cunningham 778001f63e assorted cleanup - mostly comments and adding implementations to cpp files, rather than in header files 2011-06-13 20:01:58 +00:00
Kai Ni 24d499039f prepend license information on all the codes 2010-10-14 04:54:38 +00:00
Alex Cunningham 815d892806 Added TEST_UNSAFE to avoid exception checking in normal tests, as well as an assert_inequal() evaluation in TestableAssertions.h. 2010-08-30 20:54:12 +00:00
Alex Cunningham 3dfbb26bc7 Added new test structures that allow for nonfatal assertions: EXPECT, EXPECT_DOUBLES_EQUAL, EXPECT_LONGS_EQUAL. Use these to check several unrelated conditions in a test. testTupleConfig was updated to make use of the new test structures. 2010-08-06 14:23:12 +00:00
Alex Cunningham cf2b3db5a6 Added CHECK_EXCEPTION() that can test whether an operation throws a specific exception, and used it in example tests 2010-07-20 14:51:00 +00:00
Alex Cunningham 7fc184eba4 Added the ability to check if an operation throws the correct exception 2010-07-16 19:53:53 +00:00
Alex Cunningham 7b85dc3ff4 CppUnitLite will now catch exceptions and tell you the error and the line number of the failing test. This is to avoid having to hunt for crashing tests out of a large battery of tests. Look at the results of the (still failing) wrap/testWrap for an example. 2010-07-16 19:30:38 +00:00
Richard Roberts d80fa24a9f Fixing directory structure 2009-08-21 22:23:24 +00:00