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 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: f9bfda0a6f3853e48255b5559ccba76fbcbfcc5a
5
+ refs/heads/try: 85424c4baedd689796560fcdd7b1496cd90fa2db
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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