mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01: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:
		| @@ -124,7 +124,7 @@ namespace Matchers { | ||||
|                 auto lfirst = m_target.begin(), llast = m_target.end(); | ||||
|                 auto rfirst = vec.begin(), rlast = vec.end(); | ||||
|                 // Cut common prefix to optimize checking of permuted parts | ||||
|                 while (lfirst != llast && *lfirst != *rfirst) { | ||||
|                 while (lfirst != llast && *lfirst == *rfirst) { | ||||
|                     ++lfirst; ++rfirst; | ||||
|                 } | ||||
|                 if (lfirst == llast) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský