Skip to content

Commit 9595b3b

Browse files
committed
Updated ChangeLog for v12
1 parent 1749b01 commit 9595b3b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ChangeLog

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
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+
128
v11 2016-01-04
229

330
* Added regular expression matcher for std::string and c-strings

0 commit comments

Comments
 (0)