Changeset - 3e20b863e07e
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2020-04-01 18:13:36
brettcsmith@brettcsmith.org
test_meta_entity: Test more punctuation as invalid values.
1 file changed with 8 insertions and 7 deletions:
0 comments (0 inline, 0 general)
tests/test_meta_entity.py
Show inline comments
...
 
@@ -51,16 +51,17 @@ INVALID_VALUES = {
 
    # Names that can be reduced to ASCII should be
 
    # Producers should change this to Uberentity or Ueberentity
 
    # I am not wild about this rule and would like to relax it—it's mostly
 
    # based on an expectation that entities are typed in by a human. That's true
 
    # less and less and it seems like we should reduce the amount of mangling
 
    # producers are expected to do. But it's the rule for today.
 
    # based on an expectation that entities are typed in by an American. That's
 
    # true less and less and it seems like we should reduce the amount of
 
    # mangling producers are expected to do. But it's the rule for today.
 
    'Überentity',
 
    # Whitespace is never allowed
 
    'Alex Smith',
 
    '田中 流星',
 
    'スミス ダコタ',
 
    'Яшин Данила',
 
    ' ',
 
    'Alex Smith',
 
    '田中\u00A0流星',  # Non-breaking space
 
    # The only punctuation allowed is - and .
 
    'スミス_ダコタ',
 
    'Яшин—Данила',  # em dash
 
    # An empty string is not valid
 
    '',
 
}
0 comments (0 inline, 0 general)