Skip to content

Commit d9896d5

Browse files
committed
auto merge of #6028 : Kimundi/rust/strconv-test-fixup, r=brson
r? @brson Can't test atm, but it probably failed because of 32bit float precision loss of the float literal.
2 parents 88ccee7 + b813d68 commit d9896d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libcore/num/strconv.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ mod test {
655655
use option::*;
656656

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

668-
let f : Option<f32> = from_str_common("_1_._1_e_1_", 10, false, true, false,
667+
let f : Option<f32> = from_str_common("_1_._5_e_1_", 10, false, true, false,
669668
ExpDec, false, true);
670-
assert_eq!(f, Some(1.1e1f32));
669+
assert_eq!(f, Some(1.5e1f32));
671670
}
672671

673672
#[test]

0 commit comments

Comments
 (0)