Skip to content

Commit 4dc0501

Browse files
Add test case with glossary containing character requiring multiple bytes in UTF-8 encoding
1 parent 51fd214 commit 4dc0501

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_glossary.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ def test_glossary_get(translator, glossary_manager):
101101
def test_glossary_get_entries(translator, glossary_manager):
102102
source_lang = "EN"
103103
target_lang = "DE"
104-
entries = {"Apple": "Apfel", "Banana": "Banane"}
104+
entries = {
105+
"Apple": "Apfel",
106+
"Banana": "Banane",
107+
"A%=&": "B&=%",
108+
"\u0394\u3041": "\u6DF1",
109+
"\U0001FAA8": "\U0001FAB5",
110+
}
105111
with glossary_manager(
106112
source_lang=source_lang, target_lang=target_lang, entries=entries
107113
) as created_glossary:

0 commit comments

Comments
 (0)