More documentation
This commit is contained in:
parent
c740a60bf4
commit
df8c280d7e
@ -125,6 +125,10 @@ impl core::iter::FromIterator<f64> for Average {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Assert that two numbers are almost equal to each other.
|
||||||
|
///
|
||||||
|
/// On panic, this macro will print the values of the expressions with their
|
||||||
|
/// debug representations.
|
||||||
macro_rules! assert_almost_eq {
|
macro_rules! assert_almost_eq {
|
||||||
($a:expr, $b:expr, $prec:expr) => (
|
($a:expr, $b:expr, $prec:expr) => (
|
||||||
if ($a - $b).abs() > $prec {
|
if ($a - $b).abs() > $prec {
|
||||||
|
Loading…
Reference in New Issue
Block a user