mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 19:05:40 +02:00
Fix a bug in UnorderedEqualsMatcher
Previously a mismatched prefix would be skipped before the actual comparison would be performed. Obviously, it is supposed to be _matching_ prefix that is skipped.
This commit is contained in:
@@ -6296,6 +6296,18 @@ with expansion:
|
||||
"this string contains 'abc' as a substring" matches "this string contains
|
||||
'abc' as a" case sensitively
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Regression test #1
|
||||
-------------------------------------------------------------------------------
|
||||
Matchers.tests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
Matchers.tests.cpp:<line number>:
|
||||
PASSED:
|
||||
CHECK_THAT( actual, !UnorderedEquals(expected) )
|
||||
with expansion:
|
||||
{ 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
SUCCEED counts as a test pass
|
||||
-------------------------------------------------------------------------------
|
||||
@@ -10822,6 +10834,6 @@ Misc.tests.cpp:<line number>:
|
||||
PASSED:
|
||||
|
||||
===============================================================================
|
||||
test cases: 212 | 146 passed | 62 failed | 4 failed as expected
|
||||
assertions: 1241 | 1098 passed | 122 failed | 21 failed as expected
|
||||
test cases: 213 | 147 passed | 62 failed | 4 failed as expected
|
||||
assertions: 1242 | 1099 passed | 122 failed | 21 failed as expected
|
||||
|
||||
|
Reference in New Issue
Block a user