diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/storage/resource.test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/storage/resource.test.cpp b/test/storage/resource.test.cpp index 083134c4d0..41bf71471a 100644 --- a/test/storage/resource.test.cpp +++ b/test/storage/resource.test.cpp @@ -28,10 +28,10 @@ TEST(Resource, Tile) { EXPECT_EQ(2, rasterTile.tileData->y); EXPECT_EQ(3, rasterTile.tileData->z); - Resource vectorTile = Resource::tile("http://example.com/{z}/{x}/{y}.mvt", 2.0, 1, 2, 3, Tileset::Scheme::XYZ); + Resource vectorTile = Resource::tile("http://example.com/{prefix}/{z}/{x}/{y}.mvt", 2.0, 1, 2, 3, Tileset::Scheme::XYZ); EXPECT_EQ(Resource::Kind::Tile, vectorTile.kind); - EXPECT_EQ("http://example.com/3/1/2.mvt", vectorTile.url); - EXPECT_EQ("http://example.com/{z}/{x}/{y}.mvt", vectorTile.tileData->urlTemplate); + EXPECT_EQ("http://example.com/12/3/1/2.mvt", vectorTile.url); + EXPECT_EQ("http://example.com/{prefix}/{z}/{x}/{y}.mvt", vectorTile.tileData->urlTemplate); EXPECT_EQ(1, vectorTile.tileData->pixelRatio); EXPECT_EQ(1, vectorTile.tileData->x); EXPECT_EQ(2, vectorTile.tileData->y); |