summaryrefslogtreecommitdiff
path: root/test/gl
diff options
context:
space:
mode:
Diffstat (limited to 'test/gl')
-rw-r--r--test/gl/bucket.test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/gl/bucket.test.cpp b/test/gl/bucket.test.cpp
index 9f780fcffa..fd8644bfbc 100644
--- a/test/gl/bucket.test.cpp
+++ b/test/gl/bucket.test.cpp
@@ -47,10 +47,11 @@ TEST(Buckets, CircleBucket) {
gfx::BackendScope scope { backend };
gl::Context context{ backend };
- CircleBucket bucket { { {0, 0, 0}, MapMode::Static, 1.0, nullptr }, {} };
+ CircleBucket bucket{{}, MapMode::Static, 1.0};
ASSERT_FALSE(bucket.hasData());
ASSERT_FALSE(bucket.needsUpload());
+ // CircleBucket::addFeature() is a no-op.
GeometryCollection point { { { 0, 0 } } };
bucket.addFeature(StubGeometryTileFeature{{}, FeatureType::Point, point, properties},
point,
@@ -58,6 +59,10 @@ TEST(Buckets, CircleBucket) {
PatternLayerMap(),
0,
CanonicalTileID(0, 0, 0));
+ ASSERT_FALSE(bucket.hasData());
+ ASSERT_FALSE(bucket.needsUpload());
+
+ bucket.segments.emplace_back(0, 0);
ASSERT_TRUE(bucket.hasData());
ASSERT_TRUE(bucket.needsUpload());