std: un-ignore strptime test; fix bug introduced by 1a226f instead.
This commit is contained in:
parent
2c870e4074
commit
93e969e356
1 changed files with 1 additions and 2 deletions
|
|
@ -576,7 +576,7 @@ priv fn do_strptime(s: &str, format: &str) -> Result<Tm, ~str> {
|
|||
match match_digits_in_range(s, pos, 1u, false, 1_i32, 7_i32) {
|
||||
Some(item) => {
|
||||
let (v, pos) = item;
|
||||
tm.tm_wday = v-1_i32;
|
||||
tm.tm_wday = if v == 7 { 0 } else { v };
|
||||
Ok(pos)
|
||||
}
|
||||
None => Err(~"Invalid day of week")
|
||||
|
|
@ -1025,7 +1025,6 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore(reason = "randomred")]
|
||||
fn test_strptime() {
|
||||
os::setenv(~"TZ", ~"America/Los_Angeles");
|
||||
tzset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue