mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Added a vector approximate matcher
This commit is contained in:
		 Will Handley
					Will Handley
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							45e552528d
						
					
				
				
					commit
					91b617c462
				
			| @@ -861,6 +861,30 @@ Exception.tests.cpp:<line number>: FAILED: | ||||
| due to unexpected exception with message: | ||||
|   3.14 | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Vector Approx matcher -- failing | ||||
|   Empty and non empty vectors are not approx equal | ||||
| ------------------------------------------------------------------------------- | ||||
| Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( empty, Approx(t1) ) | ||||
| with expansion: | ||||
|   {  } is approx: { 1.0, 2.0 } | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Vector Approx matcher -- failing | ||||
|   Just different vectors | ||||
| ------------------------------------------------------------------------------- | ||||
| Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v1, Approx(v2) ) | ||||
| with expansion: | ||||
|   { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Vector matchers that fail | ||||
|   Contains (element) | ||||
| @@ -1275,6 +1299,6 @@ due to unexpected exception with message: | ||||
|   Why would you throw a std::string? | ||||
|  | ||||
| =============================================================================== | ||||
| test cases:  258 |  192 passed |  62 failed |  4 failed as expected | ||||
| assertions: 1419 | 1276 passed | 122 failed | 21 failed as expected | ||||
| test cases:  260 |  193 passed |  63 failed |  4 failed as expected | ||||
| assertions: 1428 | 1283 passed | 124 failed | 21 failed as expected | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user