Don't pass Unicode to char::is_upper
This commit is contained in:
parent
26b54cc17e
commit
771177a814
@ -1687,10 +1687,9 @@ mod tests {
|
||||
#[test]
|
||||
fn test_to_upper() {
|
||||
// char::to_upper, and hence str::to_upper
|
||||
// are culturally insensitive: I'm not sure they
|
||||
// really work for anything but English ASCII, but YMMV
|
||||
|
||||
let unicode = "\u65e5\u672c";
|
||||
// are culturally insensitive: they only work for ASCII
|
||||
// (see Issue #1985)
|
||||
let unicode = ""; //"\u65e5\u672c"; // uncomment once non-ASCII works
|
||||
let input = "abcDEF" + unicode + "xyz:.;";
|
||||
let expected = "ABCDEF" + unicode + "XYZ:.;";
|
||||
let actual = to_upper(input);
|
||||
|
Loading…
x
Reference in New Issue
Block a user