diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-03-20 22:07:49 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-03-20 22:07:49 -0700 |
| commit | bef69a116e0042fbd92dfa08de68da73765f4c14 (patch) | |
| tree | c6313b34ef39c6ae96f9983badc3a6a48deae6cf /src/libstd/ascii.rs | |
| parent | 7c66a89849b2d0025121a0898c4ab298da8814bf (diff) | |
| download | rust-bef69a116e0042fbd92dfa08de68da73765f4c14.tar.gz rust-bef69a116e0042fbd92dfa08de68da73765f4c14.zip | |
std: Add regression test for #32074
Just to make sure we don't accidentally break this in the future.
Diffstat (limited to 'src/libstd/ascii.rs')
| -rw-r--r-- | src/libstd/ascii.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index 031a9b8bec2..f0fd30a3899 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -669,4 +669,10 @@ mod tests { &from_u32(lower).unwrap().to_string())); } } + + #[test] + fn inference_works() { + let x = "a".to_string(); + x.eq_ignore_ascii_case("A"); + } } |
