@@ -1826,6 +1826,19 @@ fn to_lowercase() {
18261826 assert_eq ! ( "Α'Σ" . to_lowercase( ) , "α'ς" ) ;
18271827 assert_eq ! ( "Α''Σ" . to_lowercase( ) , "α''ς" ) ;
18281828
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+
18291842 assert_eq ! ( "ΑΣ Α" . to_lowercase( ) , "ας α" ) ;
18301843 assert_eq ! ( "Α'Σ Α" . to_lowercase( ) , "α'ς α" ) ;
18311844 assert_eq ! ( "Α''Σ Α" . to_lowercase( ) , "α''ς α" ) ;
@@ -1840,6 +1853,10 @@ fn to_lowercase() {
18401853 assert_eq ! ( "Α 'Σ" . to_lowercase( ) , "α 'σ" ) ;
18411854 assert_eq ! ( "Α ''Σ" . to_lowercase( ) , "α ''σ" ) ;
18421855
1856+ assert_eq ! ( "Ä Σ" . to_lowercase( ) , "ä σ" ) ;
1857+ assert_eq ! ( "Ä 'Σ" . to_lowercase( ) , "ä 'σ" ) ;
1858+ assert_eq ! ( "Ä ''Σ" . to_lowercase( ) , "ä ''σ" ) ;
1859+
18431860 assert_eq ! ( "Σ" . to_lowercase( ) , "σ" ) ;
18441861 assert_eq ! ( "'Σ" . to_lowercase( ) , "'σ" ) ;
18451862 assert_eq ! ( "''Σ" . to_lowercase( ) , "''σ" ) ;
0 commit comments