catch2/projects/SelfTest
Martin Hořeňovský 1ca8f43b01 Add PredicateMatcher that takes an arbitrary predicate functions
Also adds `Predicate` helper function to create `PredicateMatcher`.
Because of limitations in type inference it needs to be explicitly
typed, like so
`Predicate<std::string>([](std::string const& str) { ... })`.
It also takes an optional second argument for description of the
predicate.

It is possible to infer the argument with sufficient TMP, see
https://stackoverflow.com/questions/43560492/how-to-extract-lambdas-return-type-and-variadic-parameters-pack-back-from-gener/43561563#43561563
but I don't think that the magic is worth introducing ATM.

Closes #1236
2018-04-04 11:14:19 +02:00
..
Baselines Add PredicateMatcher that takes an arbitrary predicate functions 2018-04-04 11:14:19 +02:00
CompileTimePerfTests Added files for multiply inclusions of test cases 2017-11-17 15:46:57 +00:00
IntrospectiveTests Modify XML encoder to hex-encode invalid UTF-8 sequences 2018-03-27 16:49:14 +02:00
SurrogateCpps Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
UsageTests Add PredicateMatcher that takes an arbitrary predicate functions 2018-04-04 11:14:19 +02:00
TestMain.cpp Remove unnecessary semicolons 2018-02-05 10:03:51 +01:00