Skip to content

Commit 98746e2

Browse files
committed
---
yaml --- r: 216797 b: refs/heads/stable c: 85424c4 h: refs/heads/master i: 216795: 8a09ca0 v: v3
1 parent 3c694df commit 98746e2

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
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: f9bfda0a6f3853e48255b5559ccba76fbcbfcc5a
32+
refs/heads/stable: 85424c4baedd689796560fcdd7b1496cd90fa2db
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/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/stable/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)