From 96a40fa57ae32482b4136ea80740448f8b7b7fa3 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 13 Sep 2025 13:36:32 +0800 Subject: [PATCH] test: update to unicode 17 and assume ascii text --- tests/parse/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)