1 Feature: Updates of address interpolation objects
2 Test that changes to address interpolation objects are correctly
10 Scenario: Adding a new interpolation
13 n1 Taddr:housenumber=3
14 n2 Taddr:housenumber=17
15 w33 Thighway=residential,name=Tao Nn1,n2
18 | object | class | type |
19 | N1 | place | house |
20 | N2 | place | house |
22 When updating osm data
24 w99 Taddr:interpolation=odd Nn1,n2
27 | object | class | type |
28 | N1 | place | house |
29 | N2 | place | house |
30 | W99 | place | houses |
32 Then placex contains exactly
33 | object | class | type |
34 | N1 | place | house |
35 | N2 | place | house |
36 | W33 | highway | residential |
37 Then location_property_osmline contains exactly
38 | osm_id | startnumber |
42 Scenario: Delete an existing interpolation
45 n1 Taddr:housenumber=2
46 n2 Taddr:housenumber=7
47 w99 Taddr:interpolation=odd Nn1,n2
50 | object | class | type |
51 | N1 | place | house |
52 | N2 | place | house |
53 | W99 | place | houses |
55 When updating osm data
60 | object | class | type |
61 | N1 | place | house |
62 | N2 | place | house |
64 Then placex contains exactly
65 | object | class | type |
66 | N1 | place | house |
67 | N2 | place | house |
68 Then location_property_osmline contains exactly
72 Scenario: Changing an object to an interpolation
75 n1 Taddr:housenumber=3
76 n2 Taddr:housenumber=17
77 w33 Thighway=residential Nn1,n2
78 w99 Thighway=residential Nn1,n2
81 | object | class | type |
82 | N1 | place | house |
83 | N2 | place | house |
84 | W99 | highway | residential |
86 When updating osm data
88 w99 Taddr:interpolation=odd Nn1,n2
91 | object | class | type |
92 | N1 | place | house |
93 | N2 | place | house |
94 | W99 | place | houses |
96 Then placex contains exactly
97 | object | class | type |
98 | N1 | place | house |
99 | N2 | place | house |
100 | W33 | highway | residential |
101 And location_property_osmline contains exactly
102 | osm_id | startnumber |
106 Scenario: Changing an interpolation to something else
107 When loading osm data
109 n1 Taddr:housenumber=3
110 n2 Taddr:housenumber=17
111 w99 Taddr:interpolation=odd Nn1,n2
114 | object | class | type |
115 | N1 | place | house |
116 | N2 | place | house |
117 | W99 | place | houses |
119 When updating osm data
121 w99 Thighway=residential Nn1,n2
124 | object | class | type |
125 | N1 | place | house |
126 | N2 | place | house |
127 | W99 | highway | residential |
129 Then placex contains exactly
130 | object | class | type |
131 | N1 | place | house |
132 | N2 | place | house |
133 | W99 | highway | residential |
134 And location_property_osmline contains exactly