mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Change wording of Approx documentation to be less misleading
The "percentage" suggests that the expected epsilon can be in [0, 100], but the expected values are in [0, 1]. The new wording uses "coefficient", to make it clearer that we are talking about values in [0, 1]. Closes #1388
This commit is contained in:
		| @@ -71,7 +71,7 @@ REQUIRE( performComputation() == 2.1_a ); | ||||
| `Approx` is constructed with defaults that should cover most simple cases. | ||||
| For the more complex cases, `Approx` provides 3 customization points: | ||||
|  | ||||
| * __epsilon__ - epsilon serves to set the percentage by which a result | ||||
| * __epsilon__ - epsilon serves to set the coefficient by which a result | ||||
| can differ from `Approx`'s value before it is rejected. | ||||
| _By default set to `std::numeric_limits<float>::epsilon()*100`._ | ||||
| * __margin__ - margin serves to set the the absolute value by which | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský