diff --git a/tests/parse/test.py b/tests/parse/test.py index c020641..cfae90c 100644 --- a/tests/parse/test.py +++ b/tests/parse/test.py @@ -4,7 +4,7 @@ codepoints = 0 file = '/usr/share/unicode/ucd/UnicodeData.txt' -with open(file, mode='rt', encoding='utf-8') as unicode_data: +with open(file, mode='rt', encoding='ascii') as unicode_data: for line in unicode_data.readlines(): codepoint_string, name, category = line.split(';')[:3] codepoint = int(codepoint_string, 16) @@ -12,5 +12,5 @@ with open(file, mode='rt', encoding='utf-8') as unicode_data: codepoints = codepoints + 1 print(codepoints) -# Unicode 16 has 40116 -assert(codepoints > 40000) +# Unicode 17 +assert(codepoints == 40575)