/dports/textproc/ripgrep-all/ripgrep-all-0.9.6/cargo-crates/ordered-float-1.0.2/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/shells/ion/ion-a8872014dbce730ccd00aaa722397dc394a52bf4/cargo-crates/ordered-float-1.0.2/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/editors/xi-term/xi-term-d264767/cargo-crates/ordered-float-1.0.2/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/ordered-float-1.0.2/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/games/dose-response/dose-response-179c326/cargo-crates/ordered-float-1.0.1/tests/ |
H A D | test.rs | 64 assert_eq!(NotNan::<f32>::zero(), NotNan::from(0.0f32)); in not_nan32_zero() 70 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 129 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 130 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 199 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 204 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 458 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/ordered-float-1.0.1/tests/ |
H A D | test.rs | 64 assert_eq!(NotNan::<f32>::zero(), NotNan::from(0.0f32)); in not_nan32_zero() 70 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 129 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 130 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 199 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 204 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 458 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/ordered-float/tests/ |
H A D | test.rs | 64 assert_eq!(NotNan::<f32>::zero(), NotNan::from(0.0f32)); in not_nan32_zero() 70 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 129 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 130 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 199 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 204 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 458 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/www/firefox/firefox-99.0/third_party/rust/ordered-float/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/ordered-float/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/net/krill/krill-0.9.4/cargo-crates/ordered-float-1.1.1/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/ordered-float/tests/ |
H A D | test.rs | 75 assert_eq!(NotNan::<f32>::one(), NotNan::from(1.0f32)) in not_nan32_one() 134 assert_eq!(NotNan::from(50f32).abs_sub(&NotNan::from(8f32)), NotNan::from(42f32)); in not_nan32_signed() 135 assert_eq!(NotNan::from(8f32).abs_sub(&NotNan::from(50f32)), NotNan::from(0f32)); in not_nan32_signed() 204 *(NotNan::from(5.0f32) + NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 209 *(NotNan::from(5.0f32) - NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 214 *(NotNan::from(5.0f32) * NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 219 *(NotNan::from(8.0f32) / NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 224 *(NotNan::from(8.0f32) % NotNan::from(4.0f32)), in not_nan32_calculate_correctly() 308 *(NotNan::from(5.0f64) + NotNan::from(4.0f64)), in not_nan64_calculate_correctly() 463 assert_eq!(NotNan::from(50f64).abs_sub(&NotNan::from(8f64)), NotNan::from(42f64)); in not_nan64_signed() [all …]
|
/dports/games/dose-response/dose-response-179c326/cargo-crates/ordered-float-1.0.1/src/ |
H A D | lib.rs | 24 pub type NotNaN<T> = NotNan<T>; 174 pub struct NotNan<T: Float>(T); struct 176 impl<T: Float> NotNan<T> { implementation 192 NotNan(val) in unchecked_new() 197 let NotNan(val) = self; in into_inner() localVariable 230 impl Into<f32> for NotNan<f32> { implementation 236 impl Into<f64> for NotNan<f64> { implementation 248 NotNan(v) in from() 285 impl AddAssign for NotNan<f64> { implementation 609 NotNan(T::min_value()) in min_value() [all …]
|
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/ordered-float-1.0.1/src/ |
H A D | lib.rs | 24 pub type NotNaN<T> = NotNan<T>; 174 pub struct NotNan<T: Float>(T); struct 176 impl<T: Float> NotNan<T> { implementation 192 NotNan(val) in unchecked_new() 197 let NotNan(val) = self; in into_inner() localVariable 230 impl Into<f32> for NotNan<f32> { implementation 236 impl Into<f64> for NotNan<f64> { implementation 248 NotNan(v) in from() 285 impl AddAssign for NotNan<f64> { implementation 609 NotNan(T::min_value()) in min_value() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/ordered-float/src/ |
H A D | lib.rs | 24 pub type NotNaN<T> = NotNan<T>; 174 pub struct NotNan<T: Float>(T); struct 176 impl<T: Float> NotNan<T> { implementation 192 NotNan(val) in unchecked_new() 197 let NotNan(val) = self; in into_inner() localVariable 230 impl Into<f32> for NotNan<f32> { implementation 236 impl Into<f64> for NotNan<f64> { implementation 248 NotNan(v) in from() 285 impl AddAssign for NotNan<f64> { implementation 609 NotNan(T::min_value()) in min_value() [all …]
|
/dports/www/firefox/firefox-99.0/third_party/rust/ordered-float/src/ |
H A D | lib.rs | 30 pub type NotNaN<T> = NotNan<T>; 241 pub struct NotNan<T: Float>(T); struct 243 impl<T: Float> NotNan<T> { impl 259 NotNan(val) in unchecked_new() 295 impl From<NotNan<f32>> for f32 { 301 impl From<NotNan<f64>> for f64 { 370 impl<'a, T: Float + Sum> Sum<&'a NotNan<T>> for NotNan<T> { implementation 450 impl<'a, T: Float + Product> Product<&'a NotNan<T>> for NotNan<T> { implementation 528 NotNan(-self.0) in neg() 589 NotNan(T::min_value()) in min_value() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/ordered-float/src/ |
H A D | lib.rs | 30 pub type NotNaN<T> = NotNan<T>; 241 pub struct NotNan<T: Float>(T); struct 243 impl<T: Float> NotNan<T> { impl 259 NotNan(val) in unchecked_new() 295 impl From<NotNan<f32>> for f32 { 301 impl From<NotNan<f64>> for f64 { 370 impl<'a, T: Float + Sum> Sum<&'a NotNan<T>> for NotNan<T> { implementation 450 impl<'a, T: Float + Product> Product<&'a NotNan<T>> for NotNan<T> { implementation 528 NotNan(-self.0) in neg() 589 NotNan(T::min_value()) in min_value() [all …]
|
/dports/net/krill/krill-0.9.4/cargo-crates/ordered-float-1.1.1/src/ |
H A D | lib.rs | 30 pub type NotNaN<T> = NotNan<T>; 241 pub struct NotNan<T: Float>(T); struct 243 impl<T: Float> NotNan<T> { impl 259 NotNan(val) in unchecked_new() 295 impl From<NotNan<f32>> for f32 { 301 impl From<NotNan<f64>> for f64 { 370 impl<'a, T: Float + Sum> Sum<&'a NotNan<T>> for NotNan<T> { implementation 450 impl<'a, T: Float + Product> Product<&'a NotNan<T>> for NotNan<T> { implementation 528 NotNan(-self.0) in neg() 589 NotNan(T::min_value()) in min_value() [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/ordered-float/src/ |
H A D | lib.rs | 30 pub type NotNaN<T> = NotNan<T>; 241 pub struct NotNan<T: Float>(T); struct 243 impl<T: Float> NotNan<T> { impl 259 NotNan(val) in unchecked_new() 295 impl From<NotNan<f32>> for f32 { 301 impl From<NotNan<f64>> for f64 { 370 impl<'a, T: Float + Sum> Sum<&'a NotNan<T>> for NotNan<T> { implementation 450 impl<'a, T: Float + Product> Product<&'a NotNan<T>> for NotNan<T> { implementation 528 NotNan(-self.0) in neg() 589 NotNan(T::min_value()) in min_value() [all …]
|
/dports/textproc/ripgrep-all/ripgrep-all-0.9.6/cargo-crates/ordered-float-1.0.2/src/ |
H A D | lib.rs | 29 pub type NotNaN<T> = NotNan<T>; 194 pub struct NotNan<T: Float>(T); struct 196 impl<T: Float> NotNan<T> { impl 212 NotNan(val) in unchecked_new() 227 impl<T: Float> Ord for NotNan<T> { implementation 248 impl From<NotNan<f32>> for f32 { 254 impl From<NotNan<f64>> for f64 { 282 impl<T: Float> Add for NotNan<T> { implementation 461 NotNan(-self.0) in neg() 522 NotNan(T::min_value()) in min_value() [all …]
|
/dports/shells/ion/ion-a8872014dbce730ccd00aaa722397dc394a52bf4/cargo-crates/ordered-float-1.0.2/src/ |
H A D | lib.rs | 29 pub type NotNaN<T> = NotNan<T>; 194 pub struct NotNan<T: Float>(T); struct 196 impl<T: Float> NotNan<T> { implementation 212 NotNan(val) in unchecked_new() 227 impl<T: Float> Ord for NotNan<T> { implementation 248 impl From<NotNan<f32>> for f32 { 254 impl From<NotNan<f64>> for f64 { 282 impl<T: Float> Add for NotNan<T> { implementation 461 NotNan(-self.0) in neg() 522 NotNan(T::min_value()) in min_value() [all …]
|
/dports/editors/xi-term/xi-term-d264767/cargo-crates/ordered-float-1.0.2/src/ |
H A D | lib.rs | 29 pub type NotNaN<T> = NotNan<T>; 194 pub struct NotNan<T: Float>(T); struct 196 impl<T: Float> NotNan<T> { impl 212 NotNan(val) in unchecked_new() 227 impl<T: Float> Ord for NotNan<T> { implementation 248 impl From<NotNan<f32>> for f32 { 254 impl From<NotNan<f64>> for f64 { 282 impl<T: Float> Add for NotNan<T> { implementation 461 NotNan(-self.0) in neg() 522 NotNan(T::min_value()) in min_value() [all …]
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/ordered-float-1.0.2/src/ |
H A D | lib.rs | 29 pub type NotNaN<T> = NotNan<T>; 194 pub struct NotNan<T: Float>(T); struct 196 impl<T: Float> NotNan<T> { impl 212 NotNan(val) in unchecked_new() 227 impl<T: Float> Ord for NotNan<T> { implementation 248 impl From<NotNan<f32>> for f32 { 254 impl From<NotNan<f64>> for f64 { 282 impl<T: Float> Add for NotNan<T> { implementation 461 NotNan(-self.0) in neg() 522 NotNan(T::min_value()) in min_value() [all …]
|
/dports/sysutils/zoxide/zoxide-0.6.0/cargo-crates/ordered-float-2.1.1/src/ |
H A D | lib.rs | 445 pub struct NotNan<T>(T); struct 447 impl<T> NotNan<T> { impl 454 NotNan(val) in unchecked_new() 458 impl<T: Float> NotNan<T> { impl 518 NotNan::new(v) in try_from() 525 NotNan::new(v) in try_from() 529 impl From<NotNan<f32>> for NotNan<f64> { implementation 530 fn from(v: NotNan<f32>) -> NotNan<f64> { in from() 597 impl<'a, T: Float + Sum + 'a> Sum<&'a NotNan<T>> for NotNan<T> { implementation 677 impl<'a, T: Float + Product + 'a> Product<&'a NotNan<T>> for NotNan<T> { implementation [all …]
|
/dports/sysutils/zoxide/zoxide-0.6.0/cargo-crates/ordered-float-2.1.1/tests/ |
H A D | test.rs | 19 fn not_nan<T: Float>(x: T) -> NotNan<T> { in not_nan() 20 NotNan::new(x).unwrap() in not_nan() 74 assert_eq!(NotNan::<f32>::zero(), 0.0f32); in not_nan32_zero() 75 assert!(NotNan::<f32>::zero().is_zero()); in not_nan32_zero() 80 assert_eq!(NotNan::<f32>::one(), 1.0f32) in not_nan32_one() 203 assert!(NotNan::new(f32_nan).is_err()); in not_nan32_fail_when_constructing_with_nan() 307 assert!(NotNan::new(f64_nan).is_err()); in not_nan64_fail_when_constructing_with_nan() 559 let _c: NotNan<_> = [a,b].iter().sum(); in test_sum_fails_on_nan() 576 assert_eq!(std::iter::empty::<NotNan<f64>>().sum::<NotNan<_>>(), NotNan::new(0f64).unwrap()); in not_nan64_sum_product() 581 … assert_eq!(std::iter::empty::<NotNan<f64>>().product::<NotNan<_>>(), NotNan::new(1f64).unwrap()); in not_nan64_sum_product() [all …]
|
/dports/textproc/angle-grinder/angle-grinder-0.18.0/cargo-crates/ordered-float-2.2.0/tests/ |
H A D | test.rs | 19 fn not_nan<T: Float>(x: T) -> NotNan<T> { in not_nan() 20 NotNan::new(x).unwrap() in not_nan() 74 assert_eq!(NotNan::<f32>::zero(), 0.0f32); in not_nan32_zero() 75 assert!(NotNan::<f32>::zero().is_zero()); in not_nan32_zero() 80 assert_eq!(NotNan::<f32>::one(), 1.0f32) in not_nan32_one() 203 assert!(NotNan::new(f32_nan).is_err()); in not_nan32_fail_when_constructing_with_nan() 307 assert!(NotNan::new(f64_nan).is_err()); in not_nan64_fail_when_constructing_with_nan() 559 let _c: NotNan<_> = [a,b].iter().sum(); in test_sum_fails_on_nan() 576 assert_eq!(std::iter::empty::<NotNan<f64>>().sum::<NotNan<_>>(), NotNan::new(0f64).unwrap()); in not_nan64_sum_product() 581 … assert_eq!(std::iter::empty::<NotNan<f64>>().product::<NotNan<_>>(), NotNan::new(1f64).unwrap()); in not_nan64_sum_product() [all …]
|