@@ -1826,6 +1826,19 @@ fn to_lowercase() {
1826
1826
assert_eq ! ( "Α'Σ" . to_lowercase( ) , "α'ς" ) ;
1827
1827
assert_eq ! ( "Α''Σ" . to_lowercase( ) , "α''ς" ) ;
1828
1828
1829
+ assert_eq ! ( "aΣ" . to_lowercase( ) , "aς" ) ;
1830
+ assert_eq ! ( "a'Σ" . to_lowercase( ) , "a'ς" ) ;
1831
+ assert_eq ! ( "a''Σ" . to_lowercase( ) , "a''ς" ) ;
1832
+
1833
+ assert_eq ! ( "ÄΣ" . to_lowercase( ) , "äς" ) ;
1834
+ assert_eq ! ( "ä'Σ" . to_lowercase( ) , "ä'ς" ) ;
1835
+ assert_eq ! ( "ä''Σ" . to_lowercase( ) , "ä''ς" ) ;
1836
+
1837
+ // input lengths around the boundary of the chunk size used by the ascii prefix optimization
1838
+ assert_eq ! ( "abcdefghijklmnoΣ" . to_lowercase( ) , "abcdefghijklmnoς" ) ;
1839
+ assert_eq ! ( "abcdefghijklmnopΣ" . to_lowercase( ) , "abcdefghijklmnopς" ) ;
1840
+ assert_eq ! ( "abcdefghijklmnopqΣ" . to_lowercase( ) , "abcdefghijklmnopqς" ) ;
1841
+
1829
1842
assert_eq ! ( "ΑΣ Α" . to_lowercase( ) , "ας α" ) ;
1830
1843
assert_eq ! ( "Α'Σ Α" . to_lowercase( ) , "α'ς α" ) ;
1831
1844
assert_eq ! ( "Α''Σ Α" . to_lowercase( ) , "α''ς α" ) ;
@@ -1840,6 +1853,10 @@ fn to_lowercase() {
1840
1853
assert_eq ! ( "Α 'Σ" . to_lowercase( ) , "α 'σ" ) ;
1841
1854
assert_eq ! ( "Α ''Σ" . to_lowercase( ) , "α ''σ" ) ;
1842
1855
1856
+ assert_eq ! ( "Ä Σ" . to_lowercase( ) , "ä σ" ) ;
1857
+ assert_eq ! ( "Ä 'Σ" . to_lowercase( ) , "ä 'σ" ) ;
1858
+ assert_eq ! ( "Ä ''Σ" . to_lowercase( ) , "ä ''σ" ) ;
1859
+
1843
1860
assert_eq ! ( "Σ" . to_lowercase( ) , "σ" ) ;
1844
1861
assert_eq ! ( "'Σ" . to_lowercase( ) , "'σ" ) ;
1845
1862
assert_eq ! ( "''Σ" . to_lowercase( ) , "''σ" ) ;
0 commit comments