rustfmt fixes
This commit is contained in:
parent
ff3dd206d1
commit
3dd4991eab
4 changed files with 8 additions and 8 deletions
|
|
@ -23,8 +23,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn sanity_check() {
|
||||
assert_eq!(fabs(-1.0), 1.0);
|
||||
assert_eq!(fabs(2.8), 2.8);
|
||||
assert_eq!(fabs(-1.0), 1.0);
|
||||
assert_eq!(fabs(2.8), 2.8);
|
||||
}
|
||||
|
||||
/// The spec: https://en.cppreference.com/w/cpp/numeric/math/fabs
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn sanity_check() {
|
||||
assert_eq!(fabsf(-1.0), 1.0);
|
||||
assert_eq!(fabsf(2.8), 2.8);
|
||||
assert_eq!(fabsf(-1.0), 1.0);
|
||||
assert_eq!(fabsf(2.8), 2.8);
|
||||
}
|
||||
|
||||
/// The spec: https://en.cppreference.com/w/cpp/numeric/math/fabs
|
||||
|
|
|
|||
|
|
@ -247,8 +247,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn sanity_check() {
|
||||
assert_eq!(sqrt(100.0), 10.0);
|
||||
assert_eq!(sqrt(4.0), 2.0);
|
||||
assert_eq!(sqrt(100.0), 10.0);
|
||||
assert_eq!(sqrt(4.0), 2.0);
|
||||
}
|
||||
|
||||
/// The spec: https://en.cppreference.com/w/cpp/numeric/math/sqrt
|
||||
|
|
|
|||
|
|
@ -135,8 +135,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn sanity_check() {
|
||||
assert_eq!(sqrtf(100.0), 10.0);
|
||||
assert_eq!(sqrtf(4.0), 2.0);
|
||||
assert_eq!(sqrtf(100.0), 10.0);
|
||||
assert_eq!(sqrtf(4.0), 2.0);
|
||||
}
|
||||
|
||||
/// The spec: https://en.cppreference.com/w/cpp/numeric/math/sqrt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue