@@ -89,15 +89,14 @@ TEST_CASE("tile to quadkey", "[NoDB]")
8989
9090TEST_CASE (" simple expire z1" , " [NoDB]" )
9191{
92- uint32_t const minzoom = 1 ;
93- uint32_t const maxzoom = 1 ;
94- expire_tiles_t et{minzoom, defproj};
92+ uint32_t const zoom = 1 ;
93+ expire_tiles_t et{zoom, defproj};
9594
9695 // as big a bbox as possible at the origin to dirty all four
9796 // quadrants of the world.
9897 et.from_bbox ({-10000 , -10000 , 10000 , 10000 }, expire_config_t {});
9998
100- auto const tiles = get_tiles_ordered (&et, minzoom, maxzoom );
99+ auto const tiles = get_tiles_ordered (&et, zoom, zoom );
101100 CHECK (tiles.size () == 4 );
102101
103102 auto itr = tiles.cbegin ();
@@ -109,15 +108,14 @@ TEST_CASE("simple expire z1", "[NoDB]")
109108
110109TEST_CASE (" simple expire z3" , " [NoDB]" )
111110{
112- uint32_t const minzoom = 3 ;
113- uint32_t const maxzoom = 3 ;
114- expire_tiles_t et{minzoom, defproj};
111+ uint32_t const zoom = 3 ;
112+ expire_tiles_t et{zoom, defproj};
115113
116114 // as big a bbox as possible at the origin to dirty all four
117115 // quadrants of the world.
118116 et.from_bbox ({-10000 , -10000 , 10000 , 10000 }, expire_config_t {});
119117
120- auto const tiles = get_tiles_ordered (&et, minzoom, maxzoom );
118+ auto const tiles = get_tiles_ordered (&et, zoom, zoom );
121119 CHECK (tiles.size () == 4 );
122120
123121 auto itr = tiles.cbegin ();
@@ -129,15 +127,14 @@ TEST_CASE("simple expire z3", "[NoDB]")
129127
130128TEST_CASE (" simple expire z18" , " [NoDB]" )
131129{
132- uint32_t const minzoom = 18 ;
133- uint32_t const maxzoom = 18 ;
134- expire_tiles_t et{minzoom, defproj};
130+ uint32_t const zoom = 18 ;
131+ expire_tiles_t et{zoom, defproj};
135132
136133 // dirty a smaller bbox this time, as at z18 the scale is
137134 // pretty small.
138135 et.from_bbox ({-1 , -1 , 1 , 1 }, expire_config_t {});
139136
140- auto const tiles = get_tiles_ordered (&et, minzoom, maxzoom );
137+ auto const tiles = get_tiles_ordered (&et, zoom, zoom );
141138 CHECK (tiles.size () == 4 );
142139
143140 auto itr = tiles.cbegin ();
@@ -149,14 +146,13 @@ TEST_CASE("simple expire z18", "[NoDB]")
149146
150147TEST_CASE (" simple expire z10 bounds 0, 0" , " [NoDB]" )
151148{
152- uint32_t const minzoom = 10 ;
153- uint32_t const maxzoom = 10 ;
154- expire_tiles_t et{minzoom, defproj};
149+ uint32_t const zoom = 10 ;
150+ expire_tiles_t et{zoom, defproj};
155151
156152 et.from_geometry (geom::point_t {-20037508.34 , 20037508.34 },
157153 expire_config_t {});
158154
159- auto const tiles = get_tiles_ordered (&et, minzoom, maxzoom );
155+ auto const tiles = get_tiles_ordered (&et, zoom, zoom );
160156 CHECK (tiles.size () == 1 );
161157
162158 auto itr = tiles.cbegin ();
@@ -165,14 +161,13 @@ TEST_CASE("simple expire z10 bounds 0, 0", "[NoDB]")
165161
166162TEST_CASE (" simple expire z10 bounds 0, 1023" , " [NoDB]" )
167163{
168- uint32_t const minzoom = 10 ;
169- uint32_t const maxzoom = 10 ;
170- expire_tiles_t et{minzoom, defproj};
164+ uint32_t const zoom = 10 ;
165+ expire_tiles_t et{zoom, defproj};
171166
172167 et.from_geometry (geom::point_t {-20037508.34 , -20037508.34 },
173168 expire_config_t {});
174169
175- auto const tiles = get_tiles_ordered (&et, minzoom, maxzoom );
170+ auto const tiles = get_tiles_ordered (&et, zoom, zoom );
176171 CHECK (tiles.size () == 1 );
177172
178173 auto itr = tiles.cbegin ();
@@ -181,14 +176,13 @@ TEST_CASE("simple expire z10 bounds 0, 1023", "[NoDB]")
181176
182177TEST_CASE (" simple expire z10 bounds 1023, 0" , " [NoDB]" )
183178{
184- uint32_t const minzoom = 10 ;
185- uint32_t const maxzoom = 10 ;
186- expire_tiles_t et{minzoom, defproj};
179+ uint32_t const zoom = 10 ;
180+ expire_tiles_t et{zoom, defproj};
187181
188182 et.from_geometry (geom::point_t {20037508.34 , 20037508.34 },
189183 expire_config_t {});
190184
191- auto const tiles = get_tiles_ordered (&et, minzoom, maxzoom );
185+ auto const tiles = get_tiles_ordered (&et, zoom, zoom );
192186 CHECK (tiles.size () == 2 );
193187
194188 auto itr = tiles.cbegin ();
@@ -198,14 +192,13 @@ TEST_CASE("simple expire z10 bounds 1023, 0", "[NoDB]")
198192
199193TEST_CASE (" simple expire z10 bounds 1023, 1023" , " [NoDB]" )
200194{
201- uint32_t const minzoom = 10 ;
202- uint32_t const maxzoom = 10 ;
203- expire_tiles_t et{minzoom, defproj};
195+ uint32_t const zoom = 10 ;
196+ expire_tiles_t et{zoom, defproj};
204197
205198 et.from_geometry (geom::point_t {20037508.34 , -20037508.34 },
206199 expire_config_t {});
207200
208- auto const tiles = get_tiles_ordered (&et, minzoom, maxzoom );
201+ auto const tiles = get_tiles_ordered (&et, zoom, zoom );
209202 CHECK (tiles.size () == 2 );
210203
211204 auto itr = tiles.cbegin ();
0 commit comments