catch2/projects/SelfTest/UsageTests
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
..
Approx.tests.cpp Also test Approx template constructor 2017-11-28 21:29:34 +01:00
BDD.tests.cpp Reorganised (some) usage tests so they can be included multiple times 2017-11-17 15:46:57 +00:00
Benchmark.tests.cpp Split SelfTest test files into Usage and Introspective varieties 2017-11-13 15:38:52 +00:00
Class.tests.cpp Reorganised (some) usage tests so they can be included multiple times 2017-11-17 15:46:57 +00:00
Compilation.tests.cpp Fix compilation for types where relops don't return bool 2018-01-12 15:49:56 +01:00
Condition.tests.cpp Enable Werror for dev builds 2017-11-21 18:55:28 +01:00
Decomposition.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00
EnumToString.tests.cpp Fix stringifying of unknown enums 2018-01-04 10:21:52 +00:00
Exception.tests.cpp Fixup various spelling errors (#1208) 2018-03-07 10:08:35 +01:00
Matchers.tests.cpp Add PredicateMatcher that takes an arbitrary predicate functions 2018-04-04 11:14:19 +02:00
Message.tests.cpp Update MessageTests.cpp 2017-12-09 20:51:56 +01:00
Misc.tests.cpp Introduce conditional wchar_t (and std::wstring) support 2018-03-07 10:35:31 +01:00
ToStringChrono.tests.cpp Add more weird chrono::duration stringification tests 2017-11-28 21:47:06 +01:00
ToStringGeneral.tests.cpp Provide useful and unambigous stringification for static arrays 2018-01-14 18:06:43 +01:00
ToStringPair.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00
ToStringTuple.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00
ToStringVector.tests.cpp Fixup various spelling errors (#1208) 2018-03-07 10:08:35 +01:00
ToStringWhich.tests.cpp Cleanup some tests 2018-02-15 16:06:35 +01:00
Tricky.tests.cpp Remove isTrue, alwaysTrue, alwaysFalse 2017-11-22 16:03:45 +01:00
VariadicMacros.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00