about summary refs log tree commit diff
path: root/library/alloc/tests
diff options
context:
space:
mode:
authorMarcondiro <cavenati.marco@gmail.com>2024-05-05 23:01:09 +0200
committerMarcondiro <cavenati.marco@gmail.com>2024-05-08 17:05:10 +0200
commitbbdf97254a2ed63d764a39e92a3adcecc49b962b (patch)
treebb196bd6f9b63afb18f742a89e2f13972c2c0f4a /library/alloc/tests
parente3029d220f6843f9b83d35927ff20a86137d7ed0 (diff)
downloadrust-bbdf97254a2ed63d764a39e92a3adcecc49b962b.tar.gz
rust-bbdf97254a2ed63d764a39e92a3adcecc49b962b.zip
fix #124714 str.to_lowercase sigma handling
Diffstat (limited to 'library/alloc/tests')
-rw-r--r--library/alloc/tests/str.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/alloc/tests/str.rs b/library/alloc/tests/str.rs
index df8a260624a..0078f5eaa3d 100644
--- a/library/alloc/tests/str.rs
+++ b/library/alloc/tests/str.rs
@@ -1848,6 +1848,9 @@ fn to_lowercase() {
     assert_eq!("ΑΣ'Α".to_lowercase(), "ασ'α");
     assert_eq!("ΑΣ''Α".to_lowercase(), "ασ''α");
 
+    // https://github.com/rust-lang/rust/issues/124714
+    assert_eq!("abcdefghijklmnopΣ".to_lowercase(), "abcdefghijklmnopς");
+
     // a really long string that has it's lowercase form
     // even longer. this tests that implementations don't assume
     // an incorrect upper bound on allocations