Skip to content

Commit 1fce485

Browse files
committed
remove duplicates, add tests
1 parent b92777f commit 1fce485

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

nameparser/config/prefixes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
'ste',
4343
'van',
4444
'vander',
45-
'van der',
4645
'vel',
4746
'von',
4847
'vom',

tests.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,21 @@ def test_title_with_periods_lastname_comma(self):
19791979
self.m(hn.first, "John", hn)
19801980
self.m(hn.last, "Doe", hn)
19811981

1982+
def test_mac_with_spaces(self):
1983+
hn = HumanName("Jane Mac Beth")
1984+
self.m(hn.first, "Jane", hn)
1985+
self.m(hn.last, "Mac Beth", hn)
1986+
1987+
def test_mac_as_first_name(self):
1988+
hn = HumanName("Mac Miller")
1989+
self.m(hn.first, "Mac", hn)
1990+
self.m(hn.last, "Miller", hn)
1991+
1992+
def test_multiple_prefixes(self):
1993+
hn = HumanName("Mike van der Velt")
1994+
self.m(hn.first, "Mike", hn)
1995+
self.m(hn.last, "van der Velt", hn)
1996+
19821997

19831998
class HumanNameCapitalizationTestCase(HumanNameTestBase):
19841999
def test_capitalization_exception_for_III(self):

0 commit comments

Comments
 (0)