From 56808731b699d7750726cd88dd06516c63d7f2f0 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Mon, 29 Oct 2018 14:29:16 +0200 Subject: Remove style::Layer::is()/as() --- test/style/style_layer.test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/style/style_layer.test.cpp') diff --git a/test/style/style_layer.test.cpp b/test/style/style_layer.test.cpp index 61516a2de9..5ea16b7422 100644 --- a/test/style/style_layer.test.cpp +++ b/test/style/style_layer.test.cpp @@ -54,7 +54,7 @@ const auto duration = 1.0f; TEST(Layer, BackgroundProperties) { auto layer = std::make_unique("background"); - EXPECT_TRUE(layer->is()); + ASSERT_EQ(LayerType::Background, layer->getType()); // Paint properties @@ -70,7 +70,7 @@ TEST(Layer, BackgroundProperties) { TEST(Layer, CircleProperties) { auto layer = std::make_unique("circle", "source"); - EXPECT_TRUE(layer->is()); + ASSERT_EQ(LayerType::Circle, layer->getType()); // Paint properties @@ -95,7 +95,7 @@ TEST(Layer, CircleProperties) { TEST(Layer, FillProperties) { auto layer = std::make_unique("fill", "source"); - EXPECT_TRUE(layer->is()); + ASSERT_EQ(LayerType::Fill, layer->getType()); // Paint properties @@ -123,7 +123,7 @@ TEST(Layer, FillProperties) { TEST(Layer, LineProperties) { auto layer = std::make_unique("line", "source"); - EXPECT_TRUE(layer->is()); + ASSERT_EQ(LayerType::Line, layer->getType()); // Layout properties @@ -174,7 +174,7 @@ TEST(Layer, LineProperties) { TEST(Layer, RasterProperties) { auto layer = std::make_unique("raster", "source"); - EXPECT_TRUE(layer->is()); + ASSERT_EQ(LayerType::Raster, layer->getType()); // Paint properties -- cgit v1.2.1