Skip to content

Commit 9bebb9e

Browse files
committed
tweak Kuwait (KW) formatting to favor neighbourhood over suburb, add test case
1 parent 064d82b commit 9bebb9e

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

conf/countries/worldwide.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,8 +1306,7 @@ KW:
13061306
address_template: |
13071307
{{{attention}}}
13081308
{{{house}}}
1309-
{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}
1310-
1309+
{{#first}} {{{neighbourhood}}} || {{{city_district}}} || {{{suburb}}} {{/first}}
13111310
{{{road}}}
13121311
{{{house_number}}} {{{house}}}
13131312
{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}

testcases/countries/kw.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,20 @@ expected: |
6767
Gulf Road
6868
13009 Kuwait City
6969
Kuwait
70+
---
71+
description: neighbourhood before suburb, 29.324436, 48.063332
72+
components:
73+
country: Kuwait
74+
country_code: kw
75+
house_number: 9
76+
neighbourhood: Salmiya - Block 10
77+
postcode: 30007
78+
road: Street 1 Lane 2
79+
state: Hawalli Governorate
80+
suburb: Salmiya
81+
expected: |
82+
Salmiya - Block 10
83+
Street 1 Lane 2
84+
9
85+
30007
86+
Kuwait

0 commit comments

Comments
 (0)