Repository navigation
Commit b6a366a
doctor: read a supertype with the package's one fold
The doctor compared a supertype (the Charter's word in flags 8 and 11,
Tenure and Membership in flag 2) with str.strip() and str.casefold().
Every other reader of a pair uses room._fold: Unicode White_Space
trimmed, simple case folding.
What changes: str.strip() also removes U+001C to U+001F, which are not
White_Space, so a word ending in one of them was a charter to the doctor
and not to is_charter_element. No letter changes: checked over every
code point, no character whose full folding differs from its simple one
folds into a piece of the three words.
The new test fails on the old code.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>1 parent 5998daf commit b6a366a
3 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
469 | 471 | | |
470 | 472 | | |
471 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
696 | 709 | | |
697 | 710 | | |
698 | 711 | | |
| |||
0 commit comments