File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: f9bfda0a6f3853e48255b5559ccba76fbcbfcc5a
32
+ refs/heads/stable: 85424c4baedd689796560fcdd7b1496cd90fa2db
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
Original file line number Diff line number Diff line change @@ -3011,9 +3011,9 @@ mod tests {
3011
3011
let v: i64 = super :: decode ( "9223372036854775807" ) . unwrap ( ) ;
3012
3012
assert_eq ! ( v, i64 :: MAX ) ;
3013
3013
3014
- let res: DecodeResult < i64 > = super :: decode ( "765.25252 " ) ;
3014
+ let res: DecodeResult < i64 > = super :: decode ( "765.25 " ) ;
3015
3015
assert_eq ! ( res, Err ( ExpectedError ( "Integer" . to_string( ) ,
3016
- "765.25252 " . to_string( ) ) ) ) ;
3016
+ "765.25 " . to_string( ) ) ) ) ;
3017
3017
}
3018
3018
3019
3019
#[ test]
Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ pub fn main() {
138
138
t ! ( format!( "{:e}" , 1.2345e6f32 ) , "1.2345e6" ) ;
139
139
t ! ( format!( "{:e}" , 1.2345e6f64 ) , "1.2345e6" ) ;
140
140
t ! ( format!( "{:E}" , 1.2345e6f64 ) , "1.2345E6" ) ;
141
- t ! ( format!( "{:.3e}" , 1.2345e6f64 ) , "1.234e6 " ) ;
142
- t ! ( format!( "{:10.3e}" , 1.2345e6f64 ) , " 1.234e6 " ) ;
143
- t ! ( format!( "{:+10.3e}" , 1.2345e6f64 ) , " +1.234e6 " ) ;
144
- t ! ( format!( "{:+10.3e}" , -1.2345e6f64 ) , " -1.234e6 " ) ;
141
+ t ! ( format!( "{:.3e}" , 1.2345e6f64 ) , "1.235e6 " ) ;
142
+ t ! ( format!( "{:10.3e}" , 1.2345e6f64 ) , " 1.235e6 " ) ;
143
+ t ! ( format!( "{:+10.3e}" , 1.2345e6f64 ) , " +1.235e6 " ) ;
144
+ t ! ( format!( "{:+10.3e}" , -1.2345e6f64 ) , " -1.235e6 " ) ;
145
145
146
146
// Float edge cases
147
147
t ! ( format!( "{}" , -0.0 ) , "0" ) ;
You can’t perform that action at this time.
0 commit comments