Skip to content

Commit 7049d8b

Browse files
Add commented-out test cases for lower() and upper() methods to handle special characters
1 parent 5cdca5a commit 7049d8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mypyc/test-data/run-strings.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,8 @@ def test_str_lower() -> None:
918918
# Special
919919
assert "SS".lower() == "ss"
920920
assert "Σ".lower() == "σ" # Greek capital sigma -> small sigma
921+
#assert "İ".lower() == "i̇" # TODO: Latin capital letter I with dot above -> 'i' + combining dot
922+
#assert len("İ".lower()) == 2 # TODO: Confirms length change
921923

922924
[case testUpper]
923925
def test_str_upper() -> None:
@@ -927,3 +929,7 @@ def test_str_upper() -> None:
927929
assert "AbC123".upper() == "ABC123"
928930
assert "áéí".upper() == "ÁÉÍ"
929931
assert "😴🚀".upper() == "😴🚀"
932+
# Special
933+
#assert "ß".upper() == "SS" # TODO: German sharp S -> double S
934+
#assert "ffi".upper() == "FFI" # TODO: Ligature 'ffi' -> separate letters
935+
#assert len("ffi".upper()) == 3 # TODO: Confirm length increases

0 commit comments

Comments
 (0)