Skip to content

Commit

Permalink
village should beat town in DE fallback. testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
freyfogle committed Dec 30, 2024
1 parent 7e4d023 commit 81671ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/countries/worldwide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ DE:
{{{house}}}
{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}
{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}
{{#first}} {{{town}}} || {{{city}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} {{/first}}
{{#first}} {{{village}}} || {{{town}}} || {{{city}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} {{/first}}
{{#first}} {{{state}}} || {{{state_district}}} {{/first}}
{{{country}}}
Expand Down
16 changes: 16 additions & 0 deletions testcases/countries/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,19 @@ components:
expected: |
01744 Oberhäslich
Germany
---
#
description: village and town (fallback)
components:
country: Germany
country_code: de
county: Landkreis Schwäbisch Hall
municipality: Verwaltungsgemeinschaft Schwäbisch Hall
state: Baden-Württemberg
state_code: BW
town: Schwäbisch Hall
village: Tüngental
expected: |
Tüngental
Baden-Württemberg
Germany

0 comments on commit 81671ec

Please sign in to comment.