]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/query/japanese.feature
adapt BDD tests for legacy tokenizer + Python frontend
[nominatim.git] / test / bdd / db / query / japanese.feature
1 @DB
2 Feature: Searches in Japan
3     Test specifically for searches of Japanese addresses and in Japanese language.
4     @fail-legacy
5     Scenario: A block house-number is parented to the neighbourhood
6         Given the grid with origin JP
7           | 1 |   |   |   | 2 |
8           |   | 3 |   |   |   |
9           |   |   | 9 |   |   |
10           |   |   |   | 6 |   |
11         And the places
12           | osm | class   | type        | name       | geometry |
13           | W1  | highway | residential | 雉子橋通り | 1,2      |
14         And the places
15           | osm | class   | type       | housenr | addr+block_number | addr+neighbourhood | geometry |
16           | N3  | amenity | restaurant | 2       | 6                 | 2丁目              | 3        |
17         And the places
18           | osm | class | type          | name  | geometry |
19           | N9  | place | neighbourhood | 2丁目 | 9        |
20         And the places
21           | osm | class | type    | name | geometry |
22           | N6  | place | quarter | 加瀬 | 6        |
23         When importing
24         Then placex contains
25           | object | parent_place_id |
26           | N3     | N9              |
27         When sending search query "2丁目 6-2"
28         Then results contain
29           | osm |
30           | N3  |