Commit Graph

126 Commits

Author SHA1 Message Date
Phil Nash
381fffe07d Extract what() message from std::exceptions in _NO_THROW() 2011-04-08 19:44:22 +01:00
Phil Nash
3e512bd316 Added boolean test for ptr expressions 2011-04-08 19:38:50 +01:00
Phil Nash
46b4909c08 Added Malcolm Noyes' test cases 2011-04-06 22:26:16 +01:00
Phil Nash
01db6c4471 Moved Approx into its own namespace to avoid ADL issues with operator == 2011-04-04 07:56:44 +01:00
Phil Nash
751c8bd7f7 Removed special case logic around comparisons between unsigned ints and negative signed ints (as it was non-standard) 2011-04-01 08:15:08 +01:00
Phil Nash
24b352f6b8 Allow warnings about comparisons between signed and unsigned ints to get through 2011-04-01 08:14:32 +01:00
Phil Nash
5545627fb5 Merge branch 'SingleEvaluation' of https://github.com/ctt/Catch into SingleEvaluation 2011-03-29 19:15:49 +01:00
Phil Nash
84b394ec45 debug stream fixes 2011-03-29 08:05:47 +01:00
ctt
a1e5e9ffa2 Added isDebuggerActive for non Windows and Mac platforms. 2011-03-28 19:37:18 -07:00
Phil Nash
7a4b215dd3 string reporting is more consistent 2011-03-25 19:39:11 +00:00
Phil Nash
8431fa1ec5 Send to debugger console by default if running within debugger (only support on Windows at the moment) 2011-03-24 19:23:28 +00:00
Phil Nash
43c11398e7 Fixed VC++ warning 2011-03-21 18:00:19 +00:00
Phil Nash
e9e6b90219 Support output to debug window in Windows 2011-03-21 12:36:58 +00:00
Phil Nash
7dfd830a3a Allow { NULL <op> T }to work 2011-03-18 19:08:33 +00:00
Phil Nash
ef611c65d9 Pointer comparisons and compare to NULL 2011-03-18 14:39:58 +00:00
Phil Nash
f6758c2967 Added special case logic for signed/ unsigned comparisons involving negative numbers and added test cases to cover them 2011-03-15 22:22:19 +00:00
Phil Nash
f9cc21a174 Suppress spurious "not all control paths return a value" warning in Visual Studio 2011-03-15 18:49:07 +00:00
Phil Nash
6d11d56fea Correctness fixes (for VS) 2011-03-15 18:43:13 +00:00
Phil Nash
3eb41eed6d Refactored duplicated code between acceptExpression() and acceptResult() 2011-03-15 18:01:44 +00:00
Phil Nash
4890a1d80a StopOnFailure now works again 2011-03-14 19:21:35 +00:00
Phil Nash
c27e6dc838 Tidied exception check macros 2011-03-14 08:49:42 +00:00
Phil Nash
0dc4508d72 Fixed exception check regression 2011-03-14 08:45:55 +00:00
Phil Nash
f35e0cbc6a Removed complex expression state (as it shouldn't compile now anyway) 2011-03-11 19:45:36 +00:00
Phil Nash
13bfe477c7 Improvements to self test to give finer grained feedback 2011-03-11 19:44:59 +00:00
Phil Nash
2e444861c9 Fixed some issues caused by single evaluation work 2011-03-10 19:18:14 +00:00
Phil Nash
e0e74774e2 More Single Evaluation work 2011-03-10 14:09:32 +00:00
Phil Nash
b708789ee9 First cut of single-evaluation fix 2011-03-09 19:45:05 +00:00
Phil Nash
c57ff75cdb Renamed file 2011-03-09 09:38:33 +00:00
Phil Nash
e6ce1a39bb Second attempt at signed/ unsigned 2011-03-09 09:33:33 +00:00
Phil Nash
0130dfac41 First attempt at solving signed/ unsigned issue with int literals 2011-03-09 09:32:03 +00:00
Phil Nash
01234172a9 Small defensive tweak on checking expression 2011-03-01 09:55:17 +00:00
Phil Nash
7fe330f078 Made dummy BreakIntoDebugger() macro an inline function to avoid compiler warning 2011-02-24 09:55:11 +00:00
Phil Nash
a691e69dae Merge branch 'master' of https://github.com/mattrubin/Catch 2011-02-24 09:45:57 +00:00
Phil Nash
8087f5738c Fixed null string reporting issue 2011-02-23 20:02:18 +00:00
Phil Nash
331188f6b3 Added generator copy ctor to fix bug when NRVO is not used. Some exception handling improvements, too 2011-02-23 09:06:05 +00:00
Phil Nash
65e4111c31 Added more focussed meta test for sections and fixed bug in outstanding section detection 2011-02-21 18:48:00 +00:00
Phil Nash
a243a23363 More complete fix for nested sections 2011-02-21 08:50:05 +00:00
Matt Rubin
55c63af8ae Fixed a compiler error when on a Mac with DEBUG not defined, which resulted in an undefined BreakIntoDebugger() 2011-02-19 16:03:42 -08:00
Phil Nash
70e7d7f16b Further improved nested sections 2011-02-17 20:15:20 +00:00
Phil Nash
a8c31c725d Quick fix for nested sections - doesn't cover all cases yet 2011-02-17 19:40:46 +00:00
Phil Nash
ab30ab6b76 Added attribution for __debugbreak() 2011-02-16 19:22:29 +00:00
Phil Nash
73acd945cd Fixed more warnings and applied workaround for getting to std::numeric_limits without clashing with Windows' min() and max() macros. 2011-02-16 19:02:09 +00:00
Phil Nash
dea778138e Renamed DebugBreak to avoid collision and implemented in terms of __debugbreak() on Windows 2011-02-16 18:58:15 +00:00
Phil Nash
7d65a8c612 Improved reporting from self-test and basic reporter in general 2011-02-09 19:26:59 +00:00
Phil Nash
3bad3d6956 Refactored self-test - doesn't need so many supporting classes 2011-02-09 09:08:10 +00:00
Phil Nash
58e9a8bafd Some clean-up 2011-02-08 08:42:05 +00:00
Phil Nash
9d1259273f Added some headers to fix build on some gcc versions 2011-02-04 09:30:36 +00:00
Phil Nash
cf7b6881c9 Some layout reformatting. I think everything is in my preferred style now 2011-02-03 20:00:46 +00:00
Phil Nash
d16ce74dbb Fixed compiler error for gcc on Linux (reported by Tryneus - thanks) 2011-02-02 19:45:59 +00:00
Phil Nash
d1ee964f5d Fixed more gcc warnings 2011-01-31 20:15:40 +00:00