diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-03-26 20:35:49 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-03-26 20:35:49 +0530 |
| commit | f8869394bb574134355334f0d55eed7be3188d97 (patch) | |
| tree | ecc682c48378ef593572c57c8e09fd76d255387a /src/libstd | |
| parent | 4a1e19990fefbf69aca5ddc9fbc0a2d20e7f6b0d (diff) | |
| parent | bef69a116e0042fbd92dfa08de68da73765f4c14 (diff) | |
| download | rust-f8869394bb574134355334f0d55eed7be3188d97.tar.gz rust-f8869394bb574134355334f0d55eed7be3188d97.zip | |
Rollup merge of #32387 - alexcrichton:ascii-test, r=aturon
std: Add regression test for #32074 Just to make sure we don't accidentally break this in the future.
Diffstat (limited to 'src/libstd')
| -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 a8a3353da4c..3ae3cf8504e 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -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"); + } } |
