mirror of
https://github.com/serde-rs/json.git
synced 2026-02-18 14:09:05 +00:00
Add regression test for issue 1004
This commit is contained in:
parent
02e583360d
commit
b0990a51db
9
tests/regression/issue1004.rs
Normal file
9
tests/regression/issue1004.rs
Normal file
@ -0,0 +1,9 @@
|
||||
#![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();
|
||||
assert_eq!(json, "5.550000190734863"); // FIXME
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user