Fix significant bug with storing composed matchers

Given that in the 2 or so years that matchers are thing nobody complained,
it seems that people do not actually write this sort of code, and the
possibility will be removed in v3. However, to avoid correctness bugs,
we will have to support this weird code in v2.
This commit is contained in:
Martin Hořeňovský
2020-02-01 20:55:42 +01:00
parent 273c3f85eb
commit f20a9dbc6e
9 changed files with 94 additions and 13 deletions

View File

@@ -1380,6 +1380,6 @@ due to unexpected exception with message:
Why would you throw a std::string?
===============================================================================
test cases: 305 | 231 passed | 70 failed | 4 failed as expected
assertions: 1664 | 1512 passed | 131 failed | 21 failed as expected
test cases: 306 | 232 passed | 70 failed | 4 failed as expected
assertions: 1666 | 1514 passed | 131 failed | 21 failed as expected