Skip to content

Commit

Permalink
Rollup merge of rust-lang#32387 - alexcrichton:ascii-test, r=aturon
Browse files Browse the repository at this point in the history
std: Add regression test for rust-lang#32074

Just to make sure we don't accidentally break this in the future.
  • Loading branch information
Manishearth committed Mar 26, 2016
2 parents 4a1e199 + bef69a1 commit f886939
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libstd/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,4 +567,10 @@ mod tests {
&from_u32(lower).unwrap().to_string()));
}
}

#[test]
fn inference_works() {
let x = "a".to_string();
x.eq_ignore_ascii_case("A");
}
}

0 comments on commit f886939

Please sign in to comment.