Skip to content

Commit 552c338

Browse files
committed
---
yaml --- r: 210494 b: refs/heads/try c: 85424c4 h: refs/heads/master v: v3
1 parent d72d648 commit 552c338

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: f9bfda0a6f3853e48255b5559ccba76fbcbfcc5a
5+
refs/heads/try: 85424c4baedd689796560fcdd7b1496cd90fa2db
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/libserialize/json.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,9 +3011,9 @@ mod tests {
30113011
let v: i64 = super::decode("9223372036854775807").unwrap();
30123012
assert_eq!(v, i64::MAX);
30133013

3014-
let res: DecodeResult<i64> = super::decode("765.25252");
3014+
let res: DecodeResult<i64> = super::decode("765.25");
30153015
assert_eq!(res, Err(ExpectedError("Integer".to_string(),
3016-
"765.25252".to_string())));
3016+
"765.25".to_string())));
30173017
}
30183018

30193019
#[test]

branches/try/src/test/run-pass/ifmt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ pub fn main() {
138138
t!(format!("{:e}", 1.2345e6f32), "1.2345e6");
139139
t!(format!("{:e}", 1.2345e6f64), "1.2345e6");
140140
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");
145145

146146
// Float edge cases
147147
t!(format!("{}", -0.0), "0");

0 commit comments

Comments
 (0)