build(ariadne): vendor serde crates
This commit was merged in pull request #15.
This commit is contained in:
1 parent
90f46026f0
commit
64773e0948
490 files changed
+175103
No files matched your search
@@ -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");
|
||||
}
|
||||
Reference in new issue
Block a user