Verify approximate equality of floating point calculations using pytest.approx
Preconditions (2)
Step 1: Call the function or perform the calculation that returns a floating point result
Step 2: Use pytest.approx to compare the result with the expected value allowing a small tolerance
Step 3: Assert that the actual result is approximately equal to the expected value using pytest.approx
✅ Expected Result: The test passes if the actual floating point result is within the allowed tolerance of the expected value