Searched refs:MyFloat (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/num-derive/tests/ |
D | newtype.rs | 23 struct MyFloat(f64); struct 25 impl Neg for MyFloat { implementation 26 type Output = MyFloat; 28 MyFloat(self.0.neg()) in neg() 34 assert_eq!(MyFloat::from_u32(25), Some(MyFloat(25.0))); in test_from_primitive() 40 MyFloat::from_i128(std::i128::MIN), in test_from_primitive_128() 41 Some(MyFloat((-2.0).powi(127))) in test_from_primitive_128() 47 assert_eq!(MyFloat(25.0).to_u32(), Some(25)); in test_to_primitive() 52 let f = MyFloat::from_f32(std::f32::MAX).unwrap(); in test_to_primitive_128() 59 assert_eq!(MyFloat(25.0) + MyFloat(10.0), MyFloat(35.0)); in test_num_ops() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_statistics.py | 745 class MyFloat(float): class 750 for type_ in (float, MyFloat, Decimal, MyDecimal): 759 class MyFloat(float): class 761 for nan in (NAN, MyFloat(NAN)): 980 class MyFloat(float): class 983 x = statistics._convert(Fraction(9, 8), MyFloat) 984 self.check_exact_equal(x, MyFloat(1.125)) 1170 class MyFloat(float): class 1179 for kind in (float, MyFloat, Decimal, Fraction): 1197 class MyFloat(float): class [all …]
|
D | pickletester.py | 3067 class MyFloat(float): class 3094 myclasses = [MyInt, MyFloat,
|
D | test_descr.py | 1064 class MyFloat(float): class 1067 (1.0).__class__ = MyFloat
|
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ |
D | UnittestProto3.cs | 3598 public float MyFloat { property in Google.Protobuf.TestProtos.TestFieldOrderings 3631 …::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return f… in Equals() 3641 …if (MyFloat != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCod… in GetHashCode() 3664 if (MyFloat != 0F) { in WriteTo() 3666 output.WriteFloat(MyFloat); in WriteTo() 3686 if (MyFloat != 0F) { in CalculateSize() 3709 if (other.MyFloat != 0F) { in MergeFrom() 3710 MyFloat = other.MyFloat; in MergeFrom() 3738 MyFloat = input.ReadFloat(); in MergeFrom()
|
/external/python/cpython2/Lib/test/ |
D | pickletester.py | 1651 class MyFloat(float): class 1672 myclasses = [MyInt, MyLong, MyFloat,
|