assertFloatsEqual¶
- lsst.utils.tests.assertFloatsEqual(testCase: TestCase, lhs: float | ndarray, rhs: float | ndarray, **kwargs: Any) None ¶
Assert that lhs == rhs (both numeric types, whether scalar or array).
See
assertFloatsAlmostEqual
(called withrtol=atol=0
) for more information.- Parameters:
- testCase
unittest.TestCase
Instance the test is part of.
- lhsscalar or array-like
LHS value(s) to compare; may be a scalar or array-like of any dimension.
- rhsscalar or array-like
RHS value(s) to compare; may be a scalar or array-like of any dimension.
- **kwargs
Any
Keyword parameters forwarded to
assertFloatsAlmostEqual
.
- testCase
- Raises:
- AssertionError
The values are not equal.