A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
Go to file
kentsangkm 9b3189fce0 Resolved #359
Eclipse indexer did not handle the ->* operator correctly and display
error in the editor, whereas it actually is not a bug. Changing the
operator from operator->* to operator+ can resolve this problem.

Proof of concept:
Prority 3   operator+       Right-to-left
Prority 4   operator->*     Left-to-right

where:
__catchResult+expr

Supported operator in expr:
Prority 3   +
Prority 3   -
Prority 3   /
Prority 3   *
Prority 13   &&
*STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison
Prority 14   ||
*STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison

__catchResult + _1Obj   operand1 _2Obj .... _NObj
=> (__catchResult + _1Obj) operand1 _2Obj .... _NObj
=> ExpressionLhs<T>        operand1 _2Obj .... _NObj
Hence, the change is OK
2015-03-26 19:50:54 +08:00
docs Merge pull request #344 from therocode/patch-1 2014-12-30 18:36:27 +00:00
include Resolved #359 2015-03-26 19:50:54 +08:00
projects More generic and maintainable makefile. Fixes #348 2014-11-08 18:57:03 +00:00
scripts Fixed issue with single include generator 2014-07-11 07:45:41 +01:00
single_include Resolved #359 2015-03-26 19:50:54 +08:00
.gitattributes Git Attributes, with control for line-endings 2013-10-18 07:53:05 +01:00
.gitignore Renamed XCode4 folder to just XCode 2014-04-17 07:38:10 +01:00
.travis.yml more approval tests script debugging 2013-08-05 13:29:42 +02:00
catch-logo-small.png Added logo to readme 2013-03-21 19:12:21 +00:00
LICENSE_1_0.txt Fixed crlf issue 2013-11-07 13:05:29 +01:00
README.md Updated version for develop branch 2014-08-20 19:07:46 +01:00

catch logo

v1.0 build 53 (master branch)

Build status (on Travis CI) Build Status

Please see this page if you are updating from a version before 1.0

What's the Catch?

Catch stands for C++ Automated Test Cases in Headers and is a multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C). It is implemented entirely in a set of header files, but is packaged up as a single header for extra convenience.

How to use it

This documentation comprises these three parts:

The documentation will continue until morale improves

More