test(parser): add parseReceivers tests for widened geb pattern
Verify comma-prefix, no-dot, and multi-word maiden name variants are correctly stripped in parseReceivers(). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,6 +24,18 @@ class PersonNameParserTest {
|
||||
.containsExactly("Eugenie de Gruyter");
|
||||
}
|
||||
|
||||
@Test
|
||||
void gebAnnotation_noDot_multiWord_stripped() {
|
||||
assertThat(PersonNameParser.parseReceivers("Ella Dieckmann, geb de Gruyter"))
|
||||
.containsExactly("Ella Dieckmann");
|
||||
}
|
||||
|
||||
@Test
|
||||
void gebAnnotation_noDot_singleWord_stripped() {
|
||||
assertThat(PersonNameParser.parseReceivers("Elise Rockstroh geb Sintenis"))
|
||||
.containsExactly("Elise Rockstroh");
|
||||
}
|
||||
|
||||
@Test
|
||||
void twoFirstNames_sharedKnownLastName_und() {
|
||||
assertThat(PersonNameParser.parseReceivers("Walter und Eugenie de Gruyter"))
|
||||
|
||||
Reference in New Issue
Block a user