chore: add vendor dependencies for kauma build
This commit is contained in:
parent
7c94e5d8fb
commit
067ef6141c
1758 changed files with 398473 additions and 0 deletions
12
vendor/serde_json/tests/regression/issue1004.rs
vendored
Normal file
12
vendor/serde_json/tests/regression/issue1004.rs
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#![cfg(feature = "arbitrary_precision")]
|
||||
|
||||
#[test]
|
||||
fn test() {
|
||||
let float = 5.55f32;
|
||||
let value = serde_json::to_value(float).unwrap();
|
||||
let json = serde_json::to_string(&value).unwrap();
|
||||
|
||||
// If the f32 were cast to f64 by Value before serialization, then this
|
||||
// would incorrectly serialize as 5.550000190734863.
|
||||
assert_eq!(json, "5.55");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue