Show More
@@ -61,7 +61,7 b' def recompute_unicode_ranges():' | |||||
61 | pstart, pstop = 0,0 |
|
61 | pstart, pstop = 0,0 | |
62 | for start, stop in rg: |
|
62 | for start, stop in rg: | |
63 | lens.append(stop-start) |
|
63 | lens.append(stop-start) | |
64 | gap_lens.append((start - pstop, hex(pstop), hex(start), f'{round((start - pstop)/0xe01f0*100)}%')) |
|
64 | gap_lens.append((start - pstop, hex(pstop+1), hex(start), f'{round((start - pstop)/0xe01f0*100)}%')) | |
65 | pstart, pstop = start, stop |
|
65 | pstart, pstop = start, stop | |
66 |
|
66 | |||
67 | return sorted(gap_lens)[-1] |
|
67 | return sorted(gap_lens)[-1] | |
@@ -99,7 +99,7 b' def test_unicode_range():' | |||||
99 | assert len_exp == len_test, message |
|
99 | assert len_exp == len_test, message | |
100 |
|
100 | |||
101 | # fail if new unicode symbols have been added. |
|
101 | # fail if new unicode symbols have been added. | |
102 |
assert len_exp <= 143 |
|
102 | assert len_exp <= 143668, message | |
103 |
|
103 | |||
104 |
|
104 | |||
105 | @contextmanager |
|
105 | @contextmanager |
General Comments 0
You need to be logged in to leave comments.
Login now