Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#[test]
fn roundtrip_value_float_with_decimals() {
let v: ron::Value = ron::from_str("1.0").unwrap();
assert_eq!(v, ron::Value::Number(1.0_f64.into()));
let ser = ron::ser::to_string(&v).unwrap();
let roundtrip = ron::from_str(&ser).unwrap();
assert_eq!(v, roundtrip);
}
#[test]
#[allow(clippy::float_cmp)]
fn roundtrip_value_float_into() {
let v: ron::Value = ron::from_str("1.0").unwrap();
assert_eq!(v, ron::Value::Number(1.0_f64.into()));
let ser = ron::ser::to_string(&v).unwrap();
let f1: f64 = ron::from_str(&ser).unwrap();
assert_eq!(f1, 1.0_f64);
let roundtrip: ron::Value = ron::from_str(&ser).unwrap();
let f2: f64 = roundtrip.into_rust().unwrap();
assert_eq!(f2, 1.0_f64);
}