updated copyright.
[platform/core/graphics/tizenvg.git] / test / testShape.cpp
index 529ee73..a4a82c4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2021 - 2023 the ThorVG project. All rights reserved.
 
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
 
 using namespace tvg;
 
+TEST_CASE("Shape Creation", "[tvgShape]")
+{
+    auto shape = Shape::gen();
+    REQUIRE(shape);
+
+    REQUIRE(shape->identifier() == Shape::identifier());
+    REQUIRE(shape->identifier() != Picture::identifier());
+    REQUIRE(shape->identifier() != Scene::identifier());
+}
 
 TEST_CASE("Appending Commands", "[tvgShape]")
 {
@@ -197,4 +206,4 @@ TEST_CASE("Shape Filling", "[tvgShape]")
     REQUIRE(shape->fillRule() == FillRule::Winding);
     REQUIRE(shape->fill(FillRule::EvenOdd) == Result::Success);
     REQUIRE(shape->fillRule() == FillRule::EvenOdd);
-}
\ No newline at end of file
+}