diff options
Diffstat (limited to 'test/style/style_layer.test.cpp')
-rw-r--r-- | test/style/style_layer.test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/style/style_layer.test.cpp b/test/style/style_layer.test.cpp index 8356f3accd..773d172876 100644 --- a/test/style/style_layer.test.cpp +++ b/test/style/style_layer.test.cpp @@ -278,20 +278,20 @@ TEST(Layer, Observer) { TEST(Layer, DuplicateLayer) { util::RunLoop loop; - //Setup style + // Setup style StubFileSource fileSource; Style style { fileSource, 1.0 }; style.setJSON(util::read_file("test/fixtures/resources/style-unused-sources.json")); - //Add initial layer + // Add initial layer style.addLayer(std::make_unique<LineLayer>("line", "unusedsource")); - //Try to add duplicate + // Try to add duplicate try { style.addLayer(std::make_unique<LineLayer>("line", "unusedsource")); FAIL() << "Should not have been allowed to add a duplicate layer id"; } catch (const std::runtime_error e) { - //Expected + // Expected ASSERT_STREQ("Layer line already exists", e.what()); } } |