Show More
@@ -42,9 +42,15 b' def test_unicode_range():' | |||||
42 |
|
42 | |||
43 | expected_list = _unicode_name_compute([(0, 0x110000)]) |
|
43 | expected_list = _unicode_name_compute([(0, 0x110000)]) | |
44 | test = _unicode_name_compute(_UNICODE_RANGES) |
|
44 | test = _unicode_name_compute(_UNICODE_RANGES) | |
|
45 | len_exp = len(expected_list) | |||
|
46 | len_test = len(test) | |||
45 |
|
47 | |||
46 | assert len(expected_list) == len(test) |
|
48 | # do not inline the len() or on error pytest will try to print the 130 000 + | |
47 | assert len(expected_list) == 131808 |
|
49 | # elements. | |
|
50 | assert len_exp == len_test | |||
|
51 | ||||
|
52 | # fail if new unicode symbols have been added. | |||
|
53 | assert len_exp <= 131808 | |||
48 |
|
54 | |||
49 |
|
55 | |||
50 | @contextmanager |
|
56 | @contextmanager |
General Comments 0
You need to be logged in to leave comments.
Login now