refactor: misc cleanup- move from std::ops to core::ops- remove unnecessary println! calls in testsSigned-off-by: Stephen Waits <steve@waits.net>

This commit is contained in:
swaits committed 2023-02-13 09:52:35 -07:00
1 parent f5ddbc0533
commit b70449a9c2
3 files changed
+1 -3

No files matched your search

-1
View File
@@ -249,7 +249,6 @@ mod tests {
fn proptest_len(x: FloatType, y: FloatType, h: FloatType) {
let len = x.hypot(y) + h.abs();
let a = HeightVector::<2>::from(([x,y],h));
println!("a = {a:#?}");
if x.is_nan() || x.is_infinite() || y.is_nan() || y.is_infinite() || h.is_nan() || h.is_infinite() || h < 0.0 {
// we should've gottne a random univ vector here
prop_assert!(approx_eq(a.len(), 1.0, 0.0001));
-1
View File
@@ -352,7 +352,6 @@ mod tests {
// compute and test the root mean squared error
let error = slc.error + nyc.error + lax.error + mad.error;
println!("error = {error}");
assert!(error < 5.0);
}
+1 -1
View File
@@ -8,7 +8,7 @@ use num_traits::Float;
use serde::{Deserialize, Serialize};
use serde_with::serde_as;
use std::ops::{Add, Div, Index, Mul, Sub};
use core::ops::{Add, Div, Index, Mul, Sub};
//
// **** Structs ****