]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/import/addressing.feature
Correct spelling mistakes.
[nominatim.git] / test / bdd / db / import / addressing.feature
1 @DB
2 Feature: Address computation
3     Tests for filling of place_addressline
4
5     # github #121
6     Scenario: Roads crossing boundaries should contain both states
7         Given the grid
8             | 1 |   |   | 2 |   | 3 |
9             |   | 7 |   | 8 |   |   |
10             | 4 |   |   | 5 |   | 6 |
11         And the named places
12             | osm | class   | type | geometry |
13             | W1  | highway | road | 7, 8     |
14         And the named places
15             | osm | class    | type           | admin | geometry      |
16             | W10 | boundary | administrative | 5     | (1, 2, 5, 4, 1) |
17             | W11 | boundary | administrative | 5     | (2, 3, 6, 5, 2) |
18         When importing
19         Then place_addressline contains
20             | object | address | cached_rank_address |
21             | W1     | W10     | 10                  |
22             | W1     | W11     | 10                  |