|
| 1 | +v12 2016-02-01 |
| 2 | + |
| 3 | + * Built in matchers are duck tuped by default, i.e. eq, ne, gt, ge, |
| 4 | + lt, le do by default match any parameter that supports operators |
| 5 | + ==, !=, >, >=, <, <= with the value provided. If needed for |
| 6 | + disambiguation of overloads an explicit type can be provided. Example: |
| 7 | + |
| 8 | + REQUIRE_CALL(obj, numfunc(gt(3))); |
| 9 | + REQUIRE_CALL(obj, strfunc(eq<std::string&>("foo"))); |
| 10 | + |
| 11 | + The expectation on numfunc will match a function numfunc with |
| 12 | + any parameter type that can be compared as > 3. The expectation on |
| 13 | + strfunc will only match an overload with std::string& (if there are |
| 14 | + competing overloads, e.g. strfunc(const char*) and |
| 15 | + strfunc(const std::string).) |
| 16 | + |
| 17 | + * Fixed a bug with return type deduction where an array type expression |
| 18 | + was used. E.g. returning a string literal when the return type was |
| 19 | + const char* or std::string caused a compilation error. |
| 20 | + |
| 21 | + * Fixed a bug when the eq(nullptr) matcher actually checked if != |
| 22 | + comparison with nullptr was allowed. |
| 23 | + |
| 24 | + * Reluctantly reverted use of std::tuple_element_t<> for |
| 25 | + typename tuppe_element<>::type, to support g++ 4.9.0 (4.9.1 does have |
| 26 | + std::tuple_element_t<>.) |
| 27 | + |
1 | 28 | v11 2016-01-04 |
2 | 29 |
|
3 | 30 | * Added regular expression matcher for std::string and c-strings |
|
0 commit comments