File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ mod test {
69
69
#[ test_case( i64 :: MIN as f64 , i64 :: MIN ; "min as f64" ) ]
70
70
#[ test_case( format!( "{}" , i64 :: MIN ) , i64 :: MIN ; "min as string" ) ]
71
71
#[ test_case( format!( "{}.0" , i64 :: MIN ) , i64 :: MIN ; "min as f64 string" ) ]
72
- // Not quite a roundtrip test because we always serialize as numbers .
72
+ // Not quite a roundtrip test because we always serialize as strings .
73
73
fn deser_and_ser < T : serde:: Serialize > ( input : T , want : i64 ) -> Result < ( ) > {
74
74
let got = I64 :: deserialize_as ( json ! ( input) ) ?;
75
75
assert_eq ! ( got, want) ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ mod test {
64
64
#[ test_case( u64 :: MIN as f64 , u64 :: MIN ; "min as f64" ) ]
65
65
#[ test_case( format!( "{}" , u64 :: MIN ) , u64 :: MIN ; "min as string" ) ]
66
66
#[ test_case( format!( "{}.0" , u64 :: MIN ) , u64 :: MIN ; "min as f64 string" ) ]
67
- // Not quite a roundtrip test because we always serialize as numbers .
67
+ // Not quite a roundtrip test because we always serialize as strings .
68
68
fn deser_and_ser < T : serde:: Serialize > ( input : T , want : u64 ) -> Result < ( ) > {
69
69
let got = U64 :: deserialize_as ( json ! ( input) ) ?;
70
70
assert_eq ! ( got, want) ;
You can’t perform that action at this time.
0 commit comments