Skip to content

Commit

Permalink
auto merge of #6028 : Kimundi/rust/strconv-test-fixup, r=brson
Browse files Browse the repository at this point in the history
r? @brson 

Can't test atm, but it probably failed because of 32bit float precision loss of the float literal.
  • Loading branch information
bors committed Apr 23, 2013
2 parents 88ccee7 + b813d68 commit d9896d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libcore/num/strconv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,6 @@ mod test {
use option::*;

#[test]
#[ignore(reason = "fails in x86")]
fn from_str_ignore_underscores() {
let s : Option<u8> = from_str_common("__1__", 2, false, false, false,
ExpNone, false, true);
Expand All @@ -665,9 +664,9 @@ mod test {
ExpNone, false, false);
assert_eq!(n, None);

let f : Option<f32> = from_str_common("_1_._1_e_1_", 10, false, true, false,
let f : Option<f32> = from_str_common("_1_._5_e_1_", 10, false, true, false,
ExpDec, false, true);
assert_eq!(f, Some(1.1e1f32));
assert_eq!(f, Some(1.5e1f32));
}

#[test]
Expand Down

0 comments on commit d9896d5

Please sign in to comment.